Shikhar13 / codenameone

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

J2ME Build with MapComponent gives a NullPointerException on Nokia Symbian phones #289

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When you put a MapComponent in a Form in the Designer and send it to the Build 
server to get a J2ME Build and put this Build on a Nokia phone you get asked 
wether you allow the app get the current location. Strange enough because you 
are not requesting the location.

But then there is a NullPointerException, weather you deny access to the 
location or not.

The NullPointerException looks like this:
java.lang.NullPointerException
    at fc.a(+133)
    at fc.a(+20)
    at fg.a(+208)
    at fg.<init>(+11)
    at fg.<init>(+7)
    at gw.<init>(+5)
    at com.mycompany.myapp.a.start(+17)
    at com.mycompany.myapp.MyApplicationStub.startApp(+41)
    at javax.microedition.midlet.MIDletProxy.startApp(+7)
null
null
null

What steps will reproduce the problem?
1. Put a MapComponent in a Form in the Designer
2. Send J2Me Build
3. Execute on Nokia phone/Nokia Simulator

What is the expected output? What do you see instead?
It should work without problems, but instead there is a NullPointerException

What version of the product are you using? On what operating system?
Latest cn1, w7

Please provide any additional information below.

Original issue reported on code.google.com by tron.cos...@gmail.com on 6 Aug 2012 at 5:02

GoogleCodeExporter commented 9 years ago
Assigning to Chen for evaluation

Original comment by shai.almog on 6 Aug 2012 at 5:04

GoogleCodeExporter commented 9 years ago
fixed thanks, the location permission occurs because by default the map tries 
to show the current location from the device

Original comment by cf27...@gmail.com on 6 Aug 2012 at 12:10