twiddles / marioai

Automatically exported from code.google.com/p/marioai
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Replays cause a null pointer exception #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. record a run by calling cmdLineOptions.setRecordFile("name") before an 
episode.
2.  Replay file by running Main with "-rep name"

What is the expected output? What do you see instead?
Expect to see the reply.  Instead, Java prints out a null pointer exception:

java.lang.NullPointerException
    at ch.idsia.benchmark.mario.engine.LevelScene.reset(LevelScene.java:992)
    at ch.idsia.benchmark.mario.environments.MarioEnvironment.reset(MarioEnvironment.java:92)
    at ch.idsia.benchmark.tasks.BasicTask.reset(BasicTask.java:56)
    at ch.idsia.scenarios.Main.main(Main.java:28)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115)
Exception in thread "main" java.lang.NullPointerException
    at ch.idsia.benchmark.mario.engine.LevelScene.reset(LevelScene.java:1020)
    at ch.idsia.benchmark.mario.environments.MarioEnvironment.reset(MarioEnvironment.java:92)
    at ch.idsia.benchmark.tasks.BasicTask.reset(BasicTask.java:56)
    at ch.idsia.scenarios.Main.main(Main.java:28)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115)

What version of the product are you using? On what operating system?
Latest from subversion. IntelliJ 9.0.3. Windows latest x64

Original issue reported on code.google.com by melin...@gmail.com on 27 Oct 2010 at 5:03

GoogleCodeExporter commented 8 years ago
sorry, google reported a server error.

Original comment by melin...@gmail.com on 27 Oct 2010 at 5:03

GoogleCodeExporter commented 8 years ago

Original comment by Nikolay....@gmail.com on 27 Oct 2010 at 11:12