You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrp4j-dev@portals.apache.org by dl...@apache.org on 2006/12/25 22:58:29 UTC
svn commit: r490191 -
/portals/wsrp4j/trunk/producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver/DescriptionHandlerImpl.java
Author: dlouzan
Date: Mon Dec 25 13:58:28 2006
New Revision: 490191
URL: http://svn.apache.org/viewvc?view=rev&rev=490191
Log:
Now an exception is thrown when no service description is found.
Modified:
portals/wsrp4j/trunk/producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver/DescriptionHandlerImpl.java
Modified: portals/wsrp4j/trunk/producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver/DescriptionHandlerImpl.java
URL: http://svn.apache.org/viewvc/portals/wsrp4j/trunk/producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver/DescriptionHandlerImpl.java?view=diff&rev=490191&r1=490190&r2=490191
==============================================================================
--- portals/wsrp4j/trunk/producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver/DescriptionHandlerImpl.java (original)
+++ portals/wsrp4j/trunk/producer/src/java/org/apache/wsrp4j/producer/provider/pluto/driver/DescriptionHandlerImpl.java Mon Dec 25 13:58:28 2006
@@ -750,8 +750,12 @@
persistentDataObject = persistentHandler.restoreMultiple(persistentDataObject);
+ /* Use the last description found */
WSRPServiceDescription tempServiceDescription =
- (WSRPServiceDescription)persistentDataObject.getLastElement();
+ (WSRPServiceDescription) persistentDataObject.getLastElement();
+ if (tempServiceDescription == null) {
+ WSRPXHelper.throwX(ErrorCodes.MISSING_SERVICE_DESCRIPTION);
+ }
this.serviceDescription = tempServiceDescription.toServiceDescription();
}