Author: anil.saldhana(a)jboss.com
Date: 2012-02-23 11:54:11 -0500 (Thu, 23 Feb 2012)
New Revision: 1434
Modified:
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/PicketLinkSTS.java
Log:
add null checks
Modified:
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/PicketLinkSTS.java
===================================================================
---
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/PicketLinkSTS.java 2012-02-23
16:50:33 UTC (rev 1433)
+++
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/wstrust/PicketLinkSTS.java 2012-02-23
16:54:11 UTC (rev 1434)
@@ -217,6 +217,8 @@
*/
protected Source handleTokenRequest(RequestSecurityToken request)
{
+ if (context == null)
+ throw new IllegalStateException(ErrorCodes.NULL_VALUE +
"WebServiceContext");
if (this.config == null)
try
{
@@ -230,6 +232,9 @@
}
WSTrustRequestHandler handler = this.config.getRequestHandler();
+ if (handler == null)
+ throw new IllegalStateException(ErrorCodes.NULL_VALUE +
"WSTrustRequestHandler");
+
String requestType = request.getRequestType().toString();
if (logger.isDebugEnabled())
logger.debug("STS received request of type " + requestType);
Show replies by date