Project

General

Profile

« Previous | Next » 

Revision c6c09ab5

Added by Leszek Koltunski over 2 years ago

Correct a crasher.

View differences:

src/main/java/org/distorted/bandaged/BandagedCreatorRenderer.java
663 663

  
664 664
  public void touchCubit(int index)
665 665
    {
666
    if( index>=0 && index<mNumCubits ) mCubits[index].setMarked();
666
    if( index>=0 && index<mNumCubits && mCubits[index]!=null ) mCubits[index].setMarked();
667 667
    }
668 668

  
669 669
///////////////////////////////////////////////////////////////////////////////////////////////////
670 670

  
671 671
  public void untouchCubit(int index)
672 672
    {
673
    if( index>=0 && index<mNumCubits ) mCubits[index].setUnmarked();
673
    if( index>=0 && index<mNumCubits && mCubits[index]!=null ) mCubits[index].setUnmarked();
674 674
    }
675 675
}

Also available in: Unified diff