Forums Register Login

java.lang.NullPointerException - canot find why

+Pie Number of slices to send: Send
I'm little experimenting with FileConnection.
So far I put together this code








but when I run it I will get following errors
+Pie Number of slices to send: Send
I think exception is because in MobileFileBrowser midlet changescreen method that you are calling from startApp, you are creating an instance of
of class browser.gui.FileConnDetection. Now in FileConnDetection constructor you are using mgr instance variable that has not been initialised yet.
So it is throwing null pointer exception.
+Pie Number of slices to send: Send
Yes, I came to same conclusion. I was about to make some correction to code when I went little "off project" starting doing something else. Hopefully in week or two I will get back to it and post correction so other can have look at it.
Look! I laid an egg! Why does it smell like that? Tiny ad, does this smell weird to you?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1854 times.
Similar Threads
Display - Best practice
Unhandled Exception : close application
How to write to a file?
NullPointerException
file browse J2ME
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:34:02.