From 5690f8e3130d6ab64c5c18b59f646faee9b74c85 Mon Sep 17 00:00:00 2001 From: izabel <izabel> Date: Wed, 8 Apr 2009 14:25:46 +0000 Subject: [PATCH] [LMS-826] fix bug (exception throwing) SVN: 10638 --- .../cisd/openbis/generic/shared/dto/AttachmentPE.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/AttachmentPE.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/AttachmentPE.java index d4b5da2807c..4636b394cfe 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/AttachmentPE.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/shared/dto/AttachmentPE.java @@ -322,8 +322,10 @@ public class AttachmentPE extends HibernateAbstractRegistrationHolder implements } else if (owner instanceof ProjectPE) { setProjectParentInternal((ProjectPE) owner); + } else + { + throw new IllegalStateException("Unexpected attachment holder."); } - throw new IllegalStateException("Unexpected attachment holder."); } } -- GitLab