Skip to content

Commit

Permalink
Null check.
Browse files Browse the repository at this point in the history
  • Loading branch information
ning.zhang authored and dgao committed Oct 25, 2012
1 parent 32f5b13 commit d34c418
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,12 @@ public void run( )
public void setAction( String actionID, IAction action )
{
super.setAction( actionID, action );
if ( action.getId( ) == null )
if ( action != null && action.getId( ) == null )
{
action.setId( actionID );
}
getActionRegistry( ).registerAction( action );
if ( action != null )
getActionRegistry( ).registerAction( action );
}

/*
Expand Down

0 comments on commit d34c418

Please sign in to comment.