Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 171173 - NullPointerException at org.netbeans.modules.bugtracking.kenai.KenaiRepositories.getRepository
NullPointerException at org.netbeans.modules.bugtracking.kenai.KenaiRepositor...
Product: connecteddeveloper
Classification: Unclassified
Component: Team Framework
All All
: P2 (vote)
: 6.x
Assigned To: pgebauer
EXCEPTIONS_REPORT, 67patch2-verified
: 171167 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2009-08-31 14:06 UTC by Jaromir Uhrik
Modified: 2009-09-10 10:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT

stacktrace (1.17 KB, text/plain)
2009-08-31 14:06 UTC, Jaromir Uhrik

Note You need to log in before you can comment on or make changes to this bug.
Description Jaromir Uhrik 2009-08-31 14:06:29 UTC
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

User Comments:
juhrik: Share on kenai fails and the NPE appears...

        at org.netbeans.modules.bugtracking.kenai.KenaiRepositories.getRepository(
        at org.netbeans.modules.bugtracking.util.KenaiUtil.getKenaiRepository(
        at org.netbeans.modules.bugtracking.bridge.kenai.VCSKenaiSupportImpl.setFirmAssociations(
        at org.netbeans.modules.subversion.SvnKenaiSupport.setFirmAssociations(
        at org.netbeans.modules.subversion.api.Subversion.checkoutRepositoryFolder(
        at org.netbeans.modules.kenai.ui.NewKenaiProjectWizardIterator.instantiate(
Comment 1 Jaromir Uhrik 2009-08-31 14:06:33 UTC
Created attachment 86854 [details]
Comment 2 Ondrej Vrabec 2009-09-01 12:13:32 UTC
*** Issue 171167 has been marked as a duplicate of this issue. ***
Comment 3 Ondrej Vrabec 2009-09-01 12:19:54 UTC
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 now have a different url than till now.
They start with or and reg pattern in
KenaiProject.forRepository fails.
Comment 4 Petr Dvorak 2009-09-03 10:33:53 UTC
Isn't the Kenai project name known at the moment? You fill it in the SoK dialog... ?
Comment 5 Petr Dvorak 2009-09-03 12:57:27 UTC
added partial fix to "forRepository" method - please review it to see how this method works at the moment...
Comment 6 Tomas Pavek 2009-09-03 12:57:55 UTC
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).
Comment 7 Quality Engineering 2009-09-04 03:49:37 UTC
Integrated into 'main-golden', will be available in build *200909032054* on (upload may still be in progress)
User: Ondrej Vrabec <>
Log: #171173 - NPE at o.n.m.bugtracking.kenai.KenaiRepositories.getRepository
KenaiProject.forRepository can return null
Comment 8 Petr Dvorak 2009-09-04 10:52:24 UTC
The changeset 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).
Comment 9 pgebauer 2009-09-04 11:25:01 UTC
The changeset has been ported into the release67_fixes branch.
Comment 10 Jan Becicka 2009-09-04 11:51:05 UTC
the fix is not complete. there are several places, where it can cause problems. I'll try to find them.
Comment 11 Jan Becicka 2009-09-04 12:08:02 UTC
Ignore my previous comment. There are several places, but not in 6.7. (only in trunk)
Comment 12 Petr Dvorak 2009-09-04 12:20:32 UTC
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.
Comment 13 Jan Becicka 2009-09-08 13:46:24 UTC
Yes. The fix is correct. Was correct from beginning. My fault.
Comment 14 Jaromir Uhrik 2009-09-10 10:36:58 UTC

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo