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.

Bug 256643 - NullPointerException at org.netbeans.modules.git.remote.ui.history.SearchExecutor.appendResults
Summary: NullPointerException at org.netbeans.modules.git.remote.ui.history.SearchExec...
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote VCS (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-17 13:12 UTC by Exceptions Reporter
Modified: 2015-12-23 14:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 221213


Attachments
stacktrace (841 bytes, text/plain)
2015-11-17 13:12 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2015-11-17 13:12:09 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: OpenJDK 64-Bit Server VM, 24.85-b03, OpenJDK Runtime Environment, 1.7.0_85-b01
OS: Linux

User Comments:
GUEST: click on commit id on annotation to view commit info




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.git.remote.ui.history.SearchExecutor.appendResults(SearchExecutor.java:248)
   at org.netbeans.modules.git.remote.ui.history.SearchExecutor.search(SearchExecutor.java:220)
   at org.netbeans.modules.git.remote.ui.history.SearchExecutor.perform(SearchExecutor.java:198)
   at org.netbeans.modules.git.remote.client.GitProgressSupport.performIntern(GitProgressSupport.java:115)
   at org.netbeans.modules.git.remote.client.GitProgressSupport.run(GitProgressSupport.java:108)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
Comment 1 Exceptions Reporter 2015-11-17 13:12:16 UTC
Created attachment 157376 [details]
stacktrace
Comment 2 Alexander Simon 2015-11-18 10:34:26 UTC
Hi,

Could you provide an output of command:
#git show-ref --tags -d
Remote Git relies on this command to create a list of tags.
NPE is possible if list does not contain referenced line for some tag (line with ^).
Or output of the command is different of such:
b2eaccb05d0c3f22174824899c4fd796700e66c6 refs/tags/v2.3.0-rc2
15598cf41beed0d86cd2ac443e0f69c5a3b40321 refs/tags/v2.3.0-rc2^{}


Alexander
Comment 3 Alexander Simon 2015-11-18 10:45:19 UTC
fixing in enum, change set:
3f8e9e3faafb
- avoid NPE if tag referenced object is null.
Comment 4 Alexander Simon 2015-11-19 15:51:25 UTC
There is no info about tags command output.
So it is possible several variants:
- git repository was broken and output contains not matched records. IDE will ignore such tags.
- output contains some "unknown for IDE" lines. IDE will ignore tags.
- output format is not supported by IDE. IDE will ignore all tags.
In any way NPE was fixed.
Comment 5 Quality Engineering 2015-11-24 02:31:34 UTC
Integrated into 'main-silver', will be available in build *201511240002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3bbe99cfc143
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixing Bug #256643 - NullPointerException at org.netbeans.modules.git.remote.ui.history.SearchExecutor.appendResults
- avoid NPE
(transplanted from 3f8e9e3faafbd317611ca60cffba18f11fae3b9a)
Comment 6 Alexander Pepin 2015-12-23 14:58:24 UTC
Verified in build 20151215.