You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jerry Cwiklik (JIRA)" <de...@uima.apache.org> on 2017/02/10 15:27:41 UTC

[jira] [Created] (UIMA-5308) Fix potential NPE in ProcessContainer_Impl.java

Jerry Cwiklik created UIMA-5308:
-----------------------------------

             Summary: Fix potential NPE in ProcessContainer_Impl.java
                 Key: UIMA-5308
                 URL: https://issues.apache.org/jira/browse/UIMA-5308
             Project: UIMA
          Issue Type: Bug
          Components: Collection Processing
            Reporter: Jerry Cwiklik
            Assignee: Jerry Cwiklik
             Fix For: 3.0.0SDK-beta, 2.10.0SDK


Marshall ran a code checker (FindBugs?) which found a bug that can cause NPE in ProcessingContainer_Impl.java in the CPE.

The following :

        if (( (filterExpression.getOperand() == null
               && filterExpression.getOperand().getOperand() == null) && !exists)

should be:
 
        if (( (filterExpression.getOperand() == null
              || filterExpression.getOperand().getOperand() == null) && !exists)





--
This message was sent by Atlassian JIRA
(v6.3.15#6346)