Author: julien(a)jboss.com
Date: 2007-02-19 10:25:50 -0500 (Mon, 19 Feb 2007)
New Revision: 6338
Modified:
trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/RegistrationHandler.java
Log:
simplified too many statements on one line making hard to figure out what is causing NPE
Modified: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/RegistrationHandler.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/RegistrationHandler.java 2007-02-19
15:20:35 UTC (rev 6337)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/RegistrationHandler.java 2007-02-19
15:25:50 UTC (rev 6338)
@@ -131,10 +131,16 @@
capabilities.setSupportedWindowStates(windowStates);
}
-
capabilities.setSupportedUserProfileData(getListFromArray(registrationData.getCustomUserProfileData(),
false));
-
capabilities.setSupportedUserScopes(getListFromArray(registrationData.getConsumerUserScopes(),
false));
- capabilities.setSupportsGetMethod(registrationData.isMethodGetSupported());
+ //
+ String[] customUserProfileData = registrationData.getCustomUserProfileData();
+ String[] consumerUserScopes = registrationData.getConsumerUserScopes();
+ boolean isMethodGetSupported = registrationData.isMethodGetSupported();
+ //
+ capabilities.setSupportedUserProfileData(getListFromArray(customUserProfileData,
false));
+ capabilities.setSupportedUserScopes(getListFromArray(consumerUserScopes, false));
+ capabilities.setSupportsGetMethod(isMethodGetSupported);
+
// update RegistrationLocal for downstream use of Registration data
RegistrationLocal.setRegistration(registration);
}
Show replies by date