Build: NetBeans IDE Dev (Build cdev-1329-on-090828)
VM: Java HotSpot(TM) Client VM, 1.5.0_19-137, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_19-b02-304
OS: Mac OS X, 10.5.8, i386
juhrik: Share on kenai fails and the NPE appears...
Created attachment 86854 [details]
*** Issue 171167 has been marked as a duplicate of this issue. ***
fix: cdev #9afc4c658bd0
KenaiProject.forRepository may return null, so i added a simple test of the return value
However it is interesting why null is returned: repositories on testkenai.com now have a different url than till now.
They start with https://svn.testkenai.com/svn/... or https://hg.testkenai.com/hg/... and reg pattern in
Isn't the Kenai project name known at the moment? You fill it in the SoK dialog... ?
added partial fix to "forRepository" method - please review it to see how this method works at the moment...
We need to adapt to the new scheme of SCM URL provided by Kenai. We also need the old one still be recognized. After
fixing in trunk we need to create a patch for NB 6.7(.1).
Integrated into 'main-golden', will be available in build *200909032054* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Ondrej Vrabec <firstname.lastname@example.org>
Log: #171173 - NPE at o.n.m.bugtracking.kenai.KenaiRepositories.getRepository
KenaiProject.forRepository can return null
The changeset http://hg.netbeans.org/cdev/rev/e337366d52d1 should be transplanted in 67_fixes repository, please. Petr,
could you do this please?
(note: I called the fix "partial" because it still uses only the regexp - but this is the best we can do for 6.7 without
digging too deep, I guess).
The changeset http://hg.netbeans.org/cdev/rev/e337366d52d1 has been ported into the release67_fixes branch.
the fix is not complete. there are several places, where it can cause problems. I'll try to find them.
Ignore my previous comment. There are several places, but not in 6.7. (only in trunk)
Yes, I have checked in 6.7(.1) sources just now and the only place the regexp is present is in the single file... I
believe the fix is correct.
Yes. The fix is correct. Was correct from beginning. My fault.