Revision: 4853 http://openuss.svn.sourceforge.net/openuss/?rev=4853&view=rev Author: idueppe Date: 2008-10-31 12:32:55 +0000 (Fri, 31 Oct 2008) Log Message: ----------- fixed NullPointerException of issue http://teamopenuss.uni-muenster.de/jira/browse/USS-1213 Modified Paths: -------------- branches/openuss-plexus-3.1-light/plexus/plexus-web/src/main/java/org/openuss/web/papersubmission/PaperSubmissionViewPage.java Modified: branches/openuss-plexus-3.1-light/plexus/plexus-web/src/main/java/org/openuss/web/papersubmission/PaperSubmissionViewPage.java =================================================================== --- branches/openuss-plexus-3.1-light/plexus/plexus-web/src/main/java/org/openuss/web/papersubmission/PaperSubmissionViewPage.java 2008-10-31 12:32:09 UTC (rev 4852) +++ branches/openuss-plexus-3.1-light/plexus/plexus-web/src/main/java/org/openuss/web/papersubmission/PaperSubmissionViewPage.java 2008-10-31 12:32:55 UTC (rev 4853) @@ -66,7 +66,7 @@ * @throws Exception */ @SuppressWarnings("unchecked") @Prerender - public void prerender() throws Exception { // NOPMD by Administrator on 13.03.08 12:57 + public void prerender() throws Exception { super.prerender(); refreshExamInfoBean(); refreshPaperInfoBean(); @@ -78,7 +78,7 @@ StringBuilder commentString = new StringBuilder(); List<PaperSubmissionInfo> submissionList = paperSubmissionService.findPaperSubmissionsByExamAndUser(examInfo.getId(), user.getId()); for(PaperSubmissionInfo submission : submissionList){ - if(!submission.getComment().isEmpty()){ + if(StringUtils.isNotEmpty(submission.getComment())){ commentString.append(submission.getComment()); commentString.append("<br/>"); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |