Revision: 1889
Author: [email protected]
Date: Wed May 26 03:51:53 2010
Log: Bug in null-check led to another NullPointerException when printing the Error page.
http://code.google.com/p/simal/source/detail?r=1889

Modified:
/trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/ErrorReportPage.java

=======================================
--- /trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/ErrorReportPage.java Mon Nov 23 01:10:33 2009 +++ /trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/ErrorReportPage.java Wed May 26 03:51:53 2010
@@ -49,7 +49,7 @@
        logger.error("Reporting an error to the user", e);
        add(new Label("errorMessage", new Model<String>(e.getMessage())));

-       if (e.getCause() == null) {
+       if (e.getCause() != null) {
add(new Label("causedBy", new Model<String>(e.getCause().getMessage())));
        } else {
            add(new Label("causedBy", "No underlying cause"));

--
You received this message because you are subscribed to the Google Groups "Simal 
Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simal-commits?hl=en.

Reply via email to