Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1405

Possible NPE in AdaptorFileManager

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Jena 3.4.0
    • Jena 3.5.0
    • None
    • None

    Description

      Encountered this after updating an old test harness to the latest libraries:

      Exception in thread "main" java.lang.NullPointerException
      	at org.apache.jena.riot.adapters.AdapterFileManager.readModelWorker(AdapterFileManager.java:288)
      	at org.apache.jena.util.FileManager.loadModelWorker(FileManager.java:305)
      	at org.apache.jena.util.FileManager.loadModel(FileManager.java:258)
      	at org.apache.jena.util.junit.Manifest.<init>(Manifest.java:55)
      	at org.apache.jena.util.junit.TestFactoryManifest.oneManifest(TestFactoryManifest.java:46)
      	at org.apache.jena.util.junit.TestFactoryManifest.oneManifest(TestFactoryManifest.java:62)
      	at org.apache.jena.util.junit.TestFactoryManifest.process(TestFactoryManifest.java:38)
      	at com.cray.km.arq.suites.CqeTestFactory.make(CqeTestFactory.java:62)
      	at com.cray.km.arq.suites.ReducedDAWGSuite.<init>(ReducedDAWGSuite.java:62)
      	at com.cray.km.arq.suites.ReducedDAWGSuite.suite(ReducedDAWGSuite.java:42)
      	at com.cray.km.arq.TestDAWG.suite(TestDAWG.java:55)
      	at com.cray.km.arq.TestDAWG.main(TestDAWG.java:46)
      

      The NPE occurs because the Code fails to check that the input stream isn't null

      Attachments

        Issue Links

          Activity

            People

              rvesse Rob Vesse
              rvesse Rob Vesse
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: