Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-6390

NPE when trying to access config names of fresh context

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.0SDK
    • 3.3.0SDK
    • Core Java Framework
    • None

    Description

      The following test fails with an NPE:

        @Test
        public void thatGetConfigParameterNamesWorksWithoutAnyParameters() {
          UimaContext emptyContext = UIMAFramework.newUimaContext(UIMAFramework.getLogger(),
                  UIMAFramework.newDefaultResourceManager(), UIMAFramework.newConfigurationManager());
      
          assertThat(emptyContext.getConfigParameterNames()).isEmpty();
        }
      

      Stack trace:

      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)
      

      Attachments

        Activity

          People

            rec Richard Eckart de Castilho
            rec Richard Eckart de Castilho
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: