You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Thilo Goetz (JIRA)" <ui...@incubator.apache.org> on 2009/07/21 17:07:14 UTC

[jira] Assigned: (UIMA-1446) org.apache.uima.simpleserver.config.impl.SimpleFilterImpl.match() can cause a null pointer exception

     [ https://issues.apache.org/jira/browse/UIMA-1446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thilo Goetz reassigned UIMA-1446:
---------------------------------

    Assignee: Thilo Goetz

> org.apache.uima.simpleserver.config.impl.SimpleFilterImpl.match() can cause a null pointer exception
> ----------------------------------------------------------------------------------------------------
>
>                 Key: UIMA-1446
>                 URL: https://issues.apache.org/jira/browse/UIMA-1446
>             Project: UIMA
>          Issue Type: Bug
>          Components: Sandbox-SimpleServer
>            Reporter: Thomas Hampp
>            Assignee: Thilo Goetz
>
> in org.apache.uima.simpleserver.config.impl.SimpleFilterImpl
>   private final boolean match(Stack<String> stack, FeatureStructure fs) {
>    ...
> fs can be null (if a non-leave feature in the feature path is null) but that is not checked for.
> Suggested fix:
>   private final boolean match(Stack<String> stack, FeatureStructure fs) {
> 	if (fs == null) {
> 	    return (this.getCondition().getConditionType() == FilterOp.NULL);
> 	}
> 	if (stack.isEmpty()) {
>         ...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.