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 18:36:15 UTC
[jira] Updated: (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 updated UIMA-1446:
------------------------------
Affects Version/s: 2.2.2S
Fix Version/s: 2.3S
> 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
> Affects Versions: 2.2.2S
> Reporter: Thomas Hampp
> Assignee: Thilo Goetz
> Fix For: 2.3S
>
>
> 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.