Project

General

Profile

« Previous | Next » 

Revision bdcf2372

Added by Leszek Koltunski about 1 year ago

Stop crashing when something goes wrong with solvers

View differences:

src/main/java/org/distorted/solvers/SolverCube2.java
291 291
      mSolver = ImplementedTablebasesList.createPacked(os,ObjectSignatures.CUBE_2);
292 292
      }
293 293

  
294
    return mSolver!=null ? mSolver.solution(index,null) : null;
294
    return mSolver!=null ? mSolver.solution(index,null,os) : null;
295 295
    }
296 296
}  
297 297

  
src/main/java/org/distorted/solvers/SolverCuboid232.java
412 412
      mSolver = ImplementedTablebasesList.createPacked(os, ObjectSignatures.CU_232);
413 413
      }
414 414

  
415
    return mSolver!=null ? mSolver.solution(index,null) : null;
415
    return mSolver!=null ? mSolver.solution(index,null,os) : null;
416 416
    }
417 417
}  
418 418

  
src/main/java/org/distorted/solvers/SolverDino4.java
180 180
      mSolver = ImplementedTablebasesList.createPacked(os,ObjectSignatures.DIN4_3);
181 181
      }
182 182

  
183
    return mSolver!=null ? mSolver.solution(index,null) : null;
183
    return mSolver!=null ? mSolver.solution(index,null,os) : null;
184 184
    }
185 185
}  
186 186

  
src/main/java/org/distorted/solvers/SolverDino6.java
445 445
      mSolver = ImplementedTablebasesList.createPacked(os,ObjectSignatures.DINO_3);
446 446
      }
447 447

  
448
    return mSolver!=null ? mSolver.solution(index,null) : null;
448
    return mSolver!=null ? mSolver.solution(index,null,os) : null;
449 449
    }
450 450
}  
451 451

  
src/main/java/org/distorted/solvers/SolverIvyCube.java
248 248
      mSolver = ImplementedTablebasesList.createPacked(os, ObjectSignatures.IVY_2);
249 249
      }
250 250

  
251
    return mSolver!=null ? mSolver.solution(index,null) : null;
251
    return mSolver!=null ? mSolver.solution(index,null,os) : null;
252 252
    }
253 253
}  
254 254

  
src/main/java/org/distorted/solvers/SolverJing.java
530 530
      mSolver = ImplementedTablebasesList.createPacked(os,ObjectSignatures.JING_2);
531 531
      }
532 532

  
533
    return mSolver!=null ? mSolver.solution(index,null) : null;
533
    return mSolver!=null ? mSolver.solution(index,null,os) : null;
534 534
    }
535 535
}  
536 536

  
src/main/java/org/distorted/solvers/SolverPyraminx.java
543 543
      mSolver = ImplementedTablebasesList.createPacked(os, ObjectSignatures.PYRA_3);
544 544
      }
545 545

  
546
    return mSolver!=null ? mSolver.solution(index,mCornerTwist) : null;
546
    return mSolver!=null ? mSolver.solution(index,mCornerTwist,os) : null;
547 547
    }
548 548
}  
549 549

  
src/main/java/org/distorted/solvers/SolverPyraminxDiamond.java
369 369
      mSolver = ImplementedTablebasesList.createPacked(os,ObjectSignatures.PDIA_3);
370 370
      }
371 371

  
372
    return mSolver!=null ? mSolver.solution(index,null) : null;
372
    return mSolver!=null ? mSolver.solution(index,null,os) : null;
373 373
    }
374 374
}  
375 375

  
src/main/java/org/distorted/solvers/SolverPyraminxDuo.java
293 293
      mSolver = ImplementedTablebasesList.createPacked(os, ObjectSignatures.PDUO_2);
294 294
      }
295 295

  
296
    return mSolver!=null ? mSolver.solution(index,null) : null;
296
    return mSolver!=null ? mSolver.solution(index,null,os) : null;
297 297
    }
298 298
}  
299 299

  
src/main/java/org/distorted/solvers/SolverSkewb.java
392 392
      mSolver = ImplementedTablebasesList.createPacked(os,ObjectSignatures.SKEW_2);
393 393
      }
394 394

  
395
    return mSolver!=null ? mSolver.solution(index,null) : null;
395
    return mSolver!=null ? mSolver.solution(index,null,os) : null;
396 396
    }
397 397
}  
398 398

  
src/main/java/org/distorted/solvers/SolverSkewbDiamond.java
494 494
      mSolver = ImplementedTablebasesList.createPacked(os, ObjectSignatures.DIAM_2);
495 495
      }
496 496

  
497
    return mSolver!=null ? mSolver.solution(index,null) : null;
497
    return mSolver!=null ? mSolver.solution(index,null,os) : null;
498 498
    }
499 499
}  
500 500

  

Also available in: Unified diff