[jboss-svn-commits] JBL Code SVN: r32578 - labs/jbossrules/trunk/drools-core/src/main/java/org/drools/marshalling/impl.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Apr 15 08:49:08 EDT 2010


Author: salaboy21
Date: 2010-04-15 08:49:08 -0400 (Thu, 15 Apr 2010)
New Revision: 32578

Modified:
   labs/jbossrules/trunk/drools-core/src/main/java/org/drools/marshalling/impl/MarshallerReaderContext.java
Log:
JBRULES-2485: NullPointerException when completing a Workitem with parameters after resuming the flow
	- null pointer fixed, need to review work items parameter mappings with persistence variable strategies

Modified: labs/jbossrules/trunk/drools-core/src/main/java/org/drools/marshalling/impl/MarshallerReaderContext.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/main/java/org/drools/marshalling/impl/MarshallerReaderContext.java	2010-04-15 12:19:55 UTC (rev 32577)
+++ labs/jbossrules/trunk/drools-core/src/main/java/org/drools/marshalling/impl/MarshallerReaderContext.java	2010-04-15 12:49:08 UTC (rev 32578)
@@ -75,7 +75,7 @@
                                                              ClassNotFoundException {
         String name = desc.getName();
         try {
-            return Class.forName(name, false, this.ruleBase.getRootClassLoader());
+            return Class.forName(name, false, (this.ruleBase == null)?null:this.ruleBase.getRootClassLoader());
         } catch (ClassNotFoundException ex) {
             return super.resolveClass( desc );
         }        



More information about the jboss-svn-commits mailing list