Author: chris.laprun(a)jboss.com
Date: 2007-11-14 20:42:49 -0500 (Wed, 14 Nov 2007)
New Revision: 8936
Modified:
branches/JBoss_Portal_Branch_2_6/wsrp/src/main/org/jboss/portal/wsrp/WSRPExceptionFactory.java
Log:
- JBPORTAL-1167: Fixed potential NPE.
Modified:
branches/JBoss_Portal_Branch_2_6/wsrp/src/main/org/jboss/portal/wsrp/WSRPExceptionFactory.java
===================================================================
---
branches/JBoss_Portal_Branch_2_6/wsrp/src/main/org/jboss/portal/wsrp/WSRPExceptionFactory.java 2007-11-15
01:24:55 UTC (rev 8935)
+++
branches/JBoss_Portal_Branch_2_6/wsrp/src/main/org/jboss/portal/wsrp/WSRPExceptionFactory.java 2007-11-15
01:42:49 UTC (rev 8936)
@@ -102,6 +102,12 @@
{
e.printStackTrace();
}
+
+ String causeMessage = cause.getLocalizedMessage();
+ if (causeMessage != null)
+ {
+ message += " " + causeMessage;
+ }
}
String actor = null;
@@ -111,12 +117,6 @@
actor = req.getScheme() + "://" + req.getServerName() + ":"
+ req.getServerPort() + req.getContextPath() + req.getServletPath();
}
- String causeMessage = cause.getLocalizedMessage();
- if (causeMessage != null)
- {
- message += " " + causeMessage;
- }
-
return new SOAPFaultException(new QName(NS, errorCode), message, actor, detail);
}
}
\ No newline at end of file
Show replies by date