DESCRIPTION

Avoid NPE's while calculatin 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: Juliet Cantu xxx@xxx.xxx


COMMENTS

author: Juliet Cantu
date: 2010-08-10 23:25:40.000000000

Uploaded patch set 3.

-------------------------------------
author: Willow Cantrell
date: 2010-08-11 06:27:14.000000000

Patch Set 3: I would prefer that you didn't submit this; IP review completed

(3 inline comments)

Thanks Robin.

Line:190, org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/RepositoryActionHandler.java -> I'd like to see a comment to the effect that the window may be null during shutdown

Line:42, org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/ShowRepositoriesViewActionHandler.java -> I'd like to see a comment to the effect that the window may be null during shutdown

Line:39, org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/actions/ShowHistoryActionHandler.java -> I'd like to see a comment to the effect that the window may be null during shutdown

-------------------------------------
