cs0x7f / cube555

5x5x5 solver
GNU General Public License v3.0
15 stars 2 forks source link

Null pointer exception while testing #2

Closed aseemsalimtvm closed 2 years ago

aseemsalimtvm commented 2 years ago

I ran into a null pointer exception while making a unit test , every time this happening attached statckstrace and facecube

java.lang.NullPointerException at cs.fourphase.CubieCube.doConj(CubieCube.java:451) at cs.fourphase.SolvingCube.doConj(SolvingCube.java:45) at cs.fourphase.Search.solveReduction(Search.java:96) at com.aseemsalim.rubikscube.PuzzleImageSolveTest.fiveByFiveCubeTest(PuzzleImageSolveTest.kt:216) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413)

        U B F U D
        R L D R B
        B D U U F
        U F R R D
        F R R U R

R D U F L D U B B B U R D R L B L R D F U U R D R B U D L B L D L R F R F B B F U R L F R D L F L L B B R D U L F B F R B D L F F R B B U U R L U L D L B R F U B B B D D R L F F L U D L D D F L L L L B U U L F F R B D F D F D U D L B U U B U F F D R

Facelet = RLUBDLRLBFFUUFDRBBFBRLRDLUDBURBDUBDBDRLRBUFDFLLFFLFBDRFBLRDUURFBULBLFUURRBUBFUDBRUULFFFDDDLFRLDLFLRBBURUURLDFLLBLLFDRFDDDULURFRLFDFUUUBBDBBBRRRRLDDDUF