This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | NullPointerException at org.netbeans.modules.bugtracking.kenai.KenaiRepositories.getRepository | ||
---|---|---|---|
Product: | connecteddeveloper | Reporter: | Jaromir Uhrik <juhrik> |
Component: | Team Framework | Assignee: | pgebauer <pgebauer> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | sustaining |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=157443 | ||
Issue Type: | DEFECT | Exception Reporter: | 157443 |
Attachments: | stacktrace |
Description
Jaromir Uhrik
2009-08-31 14:06:29 UTC
Created attachment 86854 [details]
stacktrace
*** 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 KenaiProject.forRepository fails. 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... http://hg.netbeans.org/cdev/rev/e337366d52d1 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) Changeset: http://hg.netbeans.org/main-golden/rev/9afc4c658bd0 User: Ondrej Vrabec <ovrabec@netbeans.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. http://hg.netbeans.org/release67_fixes/rev/698afeb48bdc 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. Verified. |