Fix NPEs being thrown on tree selection in the reset dialog
commit3f46d0e30fb3c9a35304474a59a016c5f47dda84
authorRemy Suen <remysuen@ca.ibm.com>
Thu, 29 Apr 2010 00:20:02 +0000 (28 20:20 -0400)
committerRemy Suen <remysuen@ca.ibm.com>
Thu, 29 Apr 2010 00:20:02 +0000 (28 20:20 -0400)
treecfa2ba2907d6479bea4a4d40e59362c0b33ea688
parentd47b006c5269bb9427baeec129ed3f8e9b0aaa57
Fix NPEs being thrown on tree selection in the reset dialog

New code was introduced to enable/disable buttons based on the
selection in the tree. However, this code did not compensate
for the fact that some of those buttons may not have been
instantiated if the dialog is being used for a reset operation.

Change-Id: I0a61b141acce4d4c778a42467179e190cc67415e
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/BranchSelectionDialog.java