Project

General

Profile

« Previous | Next » 

Revision 7e950e32

Added by Leszek Koltunski almost 3 years ago

Another fix for a crasher.

View differences:

src/main/java/org/distorted/external/RubikUpdates.java
247 247

  
248 248
  public int getCompletedIconPresent(int ordinal)
249 249
    {
250
    return mCompleted.get(ordinal).mIconPresent;
250
    try
251
      {
252
      return mCompleted.get(ordinal).mIconPresent;
253
      }
254
    catch(IndexOutOfBoundsException ie)
255
      {
256
      // ignore; the mCompleted must have been removed already
257
      // past a successful update; see updateDone()
258
      }
259
    return 0;
251 260
    }
252 261

  
253 262
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff