Revision 47555
trunk/org.gvsig.desktop/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/ui/mdiFrame/MDIFrame.java | ||
---|---|---|
1718 | 1718 |
while ( enumeration.hasMoreElements() ) { |
1719 | 1719 |
AbstractButton button |
1720 | 1720 |
= (AbstractButton) enumeration.nextElement(); |
1721 |
if ( button.getActionCommand().equals(actionCommand) ) {
|
|
1721 |
if ( button != null && StringUtils.equals(button.getActionCommand(),actionCommand) ) {
|
|
1722 | 1722 |
button.setSelected(true); |
1723 | 1723 |
} |
1724 | 1724 |
} |
1725 | 1725 |
} catch (ClassCastException ex) { |
1726 | 1726 |
logger |
1727 |
.error("selectedTool should only contain pairs (String groupName, JToolBarToggleButton button)"); |
|
1727 |
.error("selectedTool should only contain pairs (String groupName, JToolBarToggleButton button)", ex);
|
|
1728 | 1728 |
} |
1729 | 1729 |
} |
1730 | 1730 |
} |
Also available in: Unified diff