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

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Oct 1 23:14:10 EDT 2007


Author: mark.proctor at jboss.com
Date: 2007-10-01 23:14:10 -0400 (Mon, 01 Oct 2007)
New Revision: 15498

Modified:
   labs/jbossrules/trunk/drools-core/src/main/java/org/drools/rule/Package.java
Log:
-fixed null pointer serialisation issues.

Modified: labs/jbossrules/trunk/drools-core/src/main/java/org/drools/rule/Package.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/main/java/org/drools/rule/Package.java	2007-10-02 01:32:03 UTC (rev 15497)
+++ labs/jbossrules/trunk/drools-core/src/main/java/org/drools/rule/Package.java	2007-10-02 03:14:10 UTC (rev 15498)
@@ -149,8 +149,10 @@
         stream.writeObject( this.name );
         stream.writeObject( this.imports );
         stream.writeObject( this.staticImports );
+        stream.writeObject( this.functions );
+        stream.writeObject( this.factTemplates );        
+        stream.writeObject( this.ruleFlows );
         stream.writeObject( this.globals );
-        stream.writeObject( this.ruleFlows );
         stream.writeBoolean( this.valid );
 
 
@@ -175,8 +177,10 @@
         this.name = (String) stream.readObject();
         this.imports = (Set) stream.readObject();
         this.staticImports = (Set) stream.readObject();
+        this.functions = (List) stream.readObject();
+        this.factTemplates = (Map) stream.readObject();
+        this.ruleFlows = (Map) stream.readObject();        
         this.globals = (Map) stream.readObject();
-        this.ruleFlows = (Map) stream.readObject();
         this.valid = stream.readBoolean();
 
         // Return the rules stored as a byte[]




More information about the jboss-svn-commits mailing list