Avoid NPE's while calculating enabledness of actions
commita42f327f228eb877e1e8684687f2e965acb51fed
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Tue, 10 Aug 2010 23:17:59 +0000 (11 01:17 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 14 Aug 2010 12:52:52 +0000 (14 14:52 +0200)
treefbc7f572eea664f3c859f3f64e16b92024d73df6
parent1d62333e341a33c7260cf1ea159fbcbd90182652
Avoid NPE's while calculating enabledness of actions

The isEnabled() method is called during shutdown, but then there
is no active window and we get a lot of exceptions while closing
Eclipse.

Change-Id: I38d730b0c20524128077d74fe11735d8557b73f7
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/RepositoryActionHandler.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/ShowHistoryActionHandler.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/ShowRepositoriesViewActionHandler.java