Author: tyrell
Date: Mon Jan 21 02:49:32 2008
New Revision: 12607
Log:
Addinga null check before reporting 'caused by'
Modified:
trunk/mashup/java/modules/www/error.jsp
Modified: trunk/mashup/java/modules/www/error.jsp
==============================================================================
--- trunk/mashup/java/modules/www/error.jsp (original)
+++ trunk/mashup/java/modules/www/error.jsp Mon Jan 21 02:49:32 2008
@@ -86,20 +86,29 @@
The error reported was; <%= exception.getMessage() %>
</td>
</tr>
+
+ <%
+ if (exception.getCause() != null) {
+ %>
<tr>
<td valign="top">
It was caused by a <%= exception.getCause() %>
</td>
</tr>
+ <%
+ }%>
+
+
<tr>
<td valign="top">
<%
StackTraceElement[] trace =
exception.getStackTrace();
if (trace.length > 0) {
- %>
- The following technical information is also available
regarding this error; <br><br>
+ %>
+ The following technical information is also available
regarding this error;
+ <br><br>
<%
- for (int x = 0; x < trace.length; x++) {
+ for (int x = 0; x < trace.length; x++) {
%>
<%=trace[x].toString()%><br>
<%
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev