Bug 437573 - NPE hitting Return after deleting a GIT repository
Summary: NPE hitting Return after deleting a GIT repository
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 3.3.2   Edit
Hardware: PC Windows 8
: P3 minor (vote)
Target Milestone: 5.6   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-17 03:33 EDT by Jörg Thönnes CLA
Modified: 2019-10-08 15:53 EDT (History)
1 user (show)

See Also:


Attachments
1st error in error log (4.10 KB, text/plain)
2014-06-17 03:35 EDT, Jörg Thönnes CLA
no flags Details
2nd error in error log (3.40 KB, text/plain)
2014-06-17 03:36 EDT, Jörg Thönnes CLA
no flags Details
3rd error (with NPE) in error log (4.05 KB, text/plain)
2014-06-17 03:36 EDT, Jörg Thönnes CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Thönnes CLA 2014-06-17 03:33:49 EDT
There is a reproduceable NPE after deleting a GIT repo in the GIT perspectives GIT repositories view:

What steps will reproduce the problem?
1. Create new local GIT repository
2. Delete the newly created repository using mouse clicks
3. Hit Return
3.1. Expected result: Nothing or another selected GIT repository unfolds
3.2. Actual result: Below NullPointerException

h2. Details

* See the last of the 3 errors below
* 3 errors appear in the error log, will be attached as text files

-- Error Details --
Date: Tue Jun 17 09:15:12 CEST 2014
Message: java.lang.NullPointerException
Severity: Error
Product: Eclipse 2.0.2.20140224-0000 (org.eclipse.epp.package.standard.product)
Plugin: org.eclipse.ui.navigator
Session Data:
eclipse.buildId=4.3.2.M20140221-1700
java.version=1.7.0_55
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
Framework arguments:  -product org.eclipse.epp.package.standard.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.standard.product

Exception Stack Trace:
java.lang.NullPointerException
	at org.eclipse.jface.viewers.CustomHashtable.hashCode(CustomHashtable.java:264)
	at org.eclipse.jface.viewers.CustomHashtable.get(CustomHashtable.java:236)
	at org.eclipse.jface.viewers.StructuredViewer.findItems(StructuredViewer.java:816)
	at org.eclipse.jface.viewers.StructuredViewer.findItem(StructuredViewer.java:780)
	at org.eclipse.jface.viewers.AbstractTreeViewer.isExpandable(AbstractTreeViewer.java:2129)
	at org.eclipse.jface.viewers.TreeViewer.isExpandable(TreeViewer.java:588)
...
Comment 1 Jörg Thönnes CLA 2014-06-17 03:35:15 EDT
Created attachment 244295 [details]
1st error in error log

Attached 1st error in error log.
Comment 2 Jörg Thönnes CLA 2014-06-17 03:36:00 EDT
Created attachment 244296 [details]
2nd error in error log

Attached 2nd error in error log
Comment 3 Jörg Thönnes CLA 2014-06-17 03:36:58 EDT
Created attachment 244297 [details]
3rd error (with NPE) in error log

Attached the 3rd error causing the NPE pop-up.
Comment 4 Eclipse Genie CLA 2019-10-05 02:40:17 EDT
New Gerrit change created: https://git.eclipse.org/r/150626
Comment 5 Eclipse Genie CLA 2019-10-08 15:52:23 EDT
Gerrit change https://git.eclipse.org/r/150626 was merged to [master].
Commit: http://git.eclipse.org/c/egit/egit.git/commit/?id=cf14d346d65521375106c30b28444b5b96c8a311