Seam 1.2.1.GA

The NPE is caused by context.getVariables() returning null at line number 109 
in BusinessProcessContext.


  |      98    private Set<String> getNamesFromContext() {^M
  |      99       //TODO: note that this is called from Contexts.destroy(), ^M
  |     100       //      after the Seam-managed txn was committed, but ^M
  |     101       //      this implementation requires a hit to the database!^M
  |     102       HashSet<String> results = new HashSet<String>();^M
  |     103       org.jbpm.taskmgmt.exe.TaskInstance taskInstance = 
getTaskInstance();^M
  |     104       if (taskInstance==null)^M
  |     105       {^M
  |     106          ContextInstance context = getContextInstance();^M
  |     107          if ( context!=null ) ^M
  |     108          {^M
  |     109             results.addAll( context.getVariables().keySet() );^M
  |     110          }^M
  |     111       }^M
  |     112       else^M
  |     113       {^M
  |     114          results.addAll( taskInstance.getVariables().keySet() );^M
  |     115       }^M
  |     116       return results;^M
  |     117    }^M
  | 

This method is called when the context is destoryed. 

Should line 107 be changed to:

  |     107          if ( context!=null && context.getVariables()!=null ) ^M
  | 

(Sorry about the ^M) Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066668#4066668

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066668
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to