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

Richard Eckart de Castilho resolved UIMA-6390.
----------------------------------------------
    Resolution: Fixed

> NPE when trying to access config names of fresh context
> -------------------------------------------------------
>
>                 Key: UIMA-6390
>                 URL: https://issues.apache.org/jira/browse/UIMA-6390
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>    Affects Versions: 3.2.0SDK
>            Reporter: Richard Eckart de Castilho
>            Assignee: Richard Eckart de Castilho
>            Priority: Major
>             Fix For: 3.3.0SDK, 3.2.1SDK
>
>
> The following test fails with an NPE:
> {code}
>   @Test
>   public void thatGetConfigParameterNamesWorksWithoutAnyParameters() {
>     UimaContext emptyContext = 
> UIMAFramework.newUimaContext(UIMAFramework.getLogger(),
>             UIMAFramework.newDefaultResourceManager(), 
> UIMAFramework.newConfigurationManager());
>     assertThat(emptyContext.getConfigParameterNames()).isEmpty();
>   }
> {code}
> Stack trace:
> {noformat}
> java.lang.NullPointerException
>       at 
> org.apache.uima.impl.UimaContext_ImplBase.getConfigParameterNames(UimaContext_ImplBase.java:583)
>       at 
> org.apache.uima.impl.UimaContext_implTest.thatGetConfigParameterNamesWorksWithoutAnyParameters(UimaContext_implTest.java:303)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to