Adds null checking to channel state panel.

This commit is contained in:
denny
2016-02-26 14:37:12 -05:00
parent 5f2d8c8fe6
commit 1550c62782

View File

@@ -202,7 +202,7 @@ public class ChannelStatePanel extends JPanel
switch( changedAttribute )
{
case CHANNEL_STATE:
if( state.getState() != null )
if( state != null && state.getState() != null )
{
mStateLabel.setText( state.getState().getDisplayValue() );
}