Community
Participate
Working Groups
Build Identifier: I20100603-1500 When trying to run product publisher application with parameter product file which doesn't exist or is invalid xml, the application exits with the following message: Generating metadata for .. Status ERROR: org.eclipse.equinox.p2.artifact.repository code=0 java.lang.NullPointerException -metadataRepository file:///D:/tools -artifactRepository file:///D:/tools -productFile file:///d:/non.existing -configs win32.win32.x86 Reproducible: Always Steps to Reproduce: 1. Configure parameters: -metadataRepository file:///D:/tools (test directory, could be empty) -artifactRepository file:///D:/tools (test directory, could be empty) -productFile file:///d:/non.existing file -configs win32.win32.x86 2. Run application ProductPublisher with arguments described in point 1. 3. Observe NullPointerException in application output without any meaningful message
Created attachment 171916 [details] Handling missing or invalid product file Exception handling could be improved: instead of catching all types of exceptions, only the feasible checked exceptions (IOException, ParserConfigurationException and SaxParserException) should be processed.
Fixe released in HEAD.