weimingtom / openwig

Automatically exported from code.google.com/p/openwig
1 stars 0 forks source link

Lua "reqire" statement causes java.lang.NullPointerException #240

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
* What cartridge are you playing?
I'm developing it. The source code is in the attached files Simple.lua and 
TestRequire.lua.

* What is your phone/PDA manufacturer and model? What GPS are you using?
I'm using a Motorola Droid 2 running android version 2.3.4.

* What steps will reproduce the problem?
1.Press the Start button to begin playing the cartridge.

* What is the expected output? What happens instead?
The cartridge should start, but instead it crashes (every time).

* If you see an error screen, please type its contents here:
Here is the log file:
-------------------
cartridge Simple started (openWIG r428)
-------------------
14:5:25|0.0|0.0|0.0|0.0|:: java.lang.NullPointerException

stack trace: at bytecodeloaderat @stdlib.lua:180
at @D:/Documents/Geocaching/Wherigo/SimpleTest/Simple.enc:7

* What version are you using?
WhereYouGo version 0.8.10

* Please provide any additional information below.
This problem happens with any cartridge that tries to use the lua "require" 
statement (other than the standard "require Wherigo" at the beginning). As you 
can see, Simple.enc:7 is the line containing the lua "require" statement.

The current workaround is to just copy and paste the code into a single file 
instead of using "require".

Thanks for any help with this! I'm trying to develop some components that I can 
share with different cartridges, so being able to use lua "require" is very 
useful. Thanks again.

Original issue reported on code.google.com by tigger9...@gmail.com on 15 Sep 2014 at 9:50

Attachments: