codenameone / CodenameOne

Cross-platform framework for building truly native mobile apps with Java or Kotlin. Write Once Run Anywhere support for iOS, Android, Desktop & Web.
https://www.codenameone.com/
Other
1.71k stars 405 forks source link

ios.newVM: exception.getMessage() is null (with own created exception at least) #1274

Closed codenameone closed 9 years ago

codenameone commented 9 years ago

Original issue 1275 created by codenameone on 2015-01-11T17:51:34.000Z:

I created my own AppException. When throwing that exception with a message and catching it (with try/catch), ex.getMessage() is null.

I can see this behavior only in the newVM of iOS, android is going well as well as the oldVM.

What steps will reproduce the problem?

  1. Make your own 'AppException'
  2. Throw an exception with a message.
  3. In the try, get the message with ex.getMessage()

What is the expected output? What do you see instead? The expected output is the thrown message.

What version of the product are you using? On what operating system? Linux, Netbeans 8, latest SVN (revision 1997), latest plugin.

Please provide any additional information below. I added a file with the source I used. When clicking on the button, the exception is thrown (I'm sorry there is also some AutoCompleteTextField test in the source, but it's all about the last button).

codenameone commented 9 years ago

Comment #1 originally posted by codenameone on 2015-01-28T00:50:45.000Z:

<empty>

codenameone commented 9 years ago

Comment #2 originally posted by codenameone on 2015-02-03T20:37:56.000Z:

Can't reproduce this issue. See my test case. If you can modify my test case to reproduce the issue, I'll reopen the issue.