Community
Participate
Working Groups
A version that is created with an empty string or NULL results in an instance that does not have a vector if created using the Version(String) constructor. Subsequent usage of this version yields NullPointerExceptions. Version v = Version.parseVersion(""); // OK Version v = new Version(""); // Not OK
Created attachment 127339 [details] Testcase that provokes the NPE
Created attachment 127340 [details] New Version.java with improved String constructor This attachment is the full Version.java file, fix included. It is not a patch. The reason is that the current HEAD of Version.java is in old Mac format (just CR's and no NL's) so a patch cannot be created/applied. Please *replace* the old file with this one. A copy paste into an editor is likely to preserve the old format.
Fix released. I noticed this test also wasn't part of the main test suite, so I added it to the AllTests for the omniversion package. I did replace the whole file as you requested, but can you also attach a patch form of the change to Version.java so I can mark it for IP log purposes?