Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replays cause a null pointer exception #6

Closed
GoogleCodeExporter opened this issue May 10, 2015 · 2 comments
Closed

Replays cause a null pointer exception #6

GoogleCodeExporter opened this issue May 10, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

sorry, google reported a server error.

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

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant