You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Michael Baessler (JIRA)" <ui...@incubator.apache.org> on 2008/03/26 18:03:24 UTC
[jira] Created: (UIMA-936) NPE when serializing a CAS with a String
array that contains a null value element
NPE when serializing a CAS with a String array that contains a null value element
---------------------------------------------------------------------------------
Key: UIMA-936
URL: https://issues.apache.org/jira/browse/UIMA-936
Project: UIMA
Issue Type: Bug
Components: Core Java Framework
Affects Versions: 2.2.1
Reporter: Michael Baessler
Fix For: 2.2.2
The stacktrace is shown below:
java.lang.NullPointerException
at org.apache.uima.cas.impl.CASSerializer.addCAS(CASSerializer.java:211)
at org.apache.uima.cas.test.StringArrayTest.testStringArrayNullValue(StringArrayTest.java:205)
I will add test case for this issue
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (UIMA-936) NPE when serializing a CAS with a
String array that contains a null value element
Posted by "Michael Baessler (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582346#action_12582346 ]
Michael Baessler commented on UIMA-936:
---------------------------------------
Added a test in comments at:
org.apache.uima.cas.test.StringArrayTest:testStringArrayNullValue()
please uncomment the test to check for the exception
> NPE when serializing a CAS with a String array that contains a null value element
> ---------------------------------------------------------------------------------
>
> Key: UIMA-936
> URL: https://issues.apache.org/jira/browse/UIMA-936
> Project: UIMA
> Issue Type: Bug
> Components: Core Java Framework
> Affects Versions: 2.2.1
> Reporter: Michael Baessler
> Fix For: 2.2.2
>
>
> The stacktrace is shown below:
> java.lang.NullPointerException
> at org.apache.uima.cas.impl.CASSerializer.addCAS(CASSerializer.java:211)
> at org.apache.uima.cas.test.StringArrayTest.testStringArrayNullValue(StringArrayTest.java:205)
> I will add test case for this issue
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (UIMA-936) NPE when serializing a CAS with a String
array that contains a null value element
Posted by "Thilo Goetz (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thilo Goetz closed UIMA-936.
----------------------------
Resolution: Fixed
That's how I like my bug reports: with a test case. Thanks, Michael.
StringArrayFS.set() should be checking for null string arguments, but isn't.
Fixed the bug and simplified test case so it doesn't need serialization.
> NPE when serializing a CAS with a String array that contains a null value element
> ---------------------------------------------------------------------------------
>
> Key: UIMA-936
> URL: https://issues.apache.org/jira/browse/UIMA-936
> Project: UIMA
> Issue Type: Bug
> Components: Core Java Framework
> Affects Versions: 2.2.1
> Reporter: Michael Baessler
> Assignee: Thilo Goetz
> Fix For: 2.2.2
>
>
> The stacktrace is shown below:
> java.lang.NullPointerException
> at org.apache.uima.cas.impl.CASSerializer.addCAS(CASSerializer.java:211)
> at org.apache.uima.cas.test.StringArrayTest.testStringArrayNullValue(StringArrayTest.java:205)
> I will add test case for this issue
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (UIMA-936) NPE when serializing a CAS with a
String array that contains a null value element
Posted by "Thilo Goetz (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thilo Goetz reassigned UIMA-936:
--------------------------------
Assignee: Thilo Goetz
> NPE when serializing a CAS with a String array that contains a null value element
> ---------------------------------------------------------------------------------
>
> Key: UIMA-936
> URL: https://issues.apache.org/jira/browse/UIMA-936
> Project: UIMA
> Issue Type: Bug
> Components: Core Java Framework
> Affects Versions: 2.2.1
> Reporter: Michael Baessler
> Assignee: Thilo Goetz
> Fix For: 2.2.2
>
>
> The stacktrace is shown below:
> java.lang.NullPointerException
> at org.apache.uima.cas.impl.CASSerializer.addCAS(CASSerializer.java:211)
> at org.apache.uima.cas.test.StringArrayTest.testStringArrayNullValue(StringArrayTest.java:205)
> I will add test case for this issue
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.