Android: Fix for uncaught java exception.
authorChristian Strømme <christian.stromme@digia.com>
Thu, 13 Jun 2013 13:42:12 +0000 (15:42 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 13 Jun 2013 15:56:04 +0000 (17:56 +0200)
commit16a775d47a69913ce4f0306531c97469066ea896
tree8ca52dbfaa4c3253a8f9ba6a2e0e2d07b085d291
parentccc41383044f192353d035dd9b94d2b62b0e52ff
Android: Fix for uncaught java exception.

If an exception's getMessage() function returns a null object, we can't
send it directly to the Log function, as it will throw an exception...
To avoid this we can prepend the string from getMessage() with an empty
string.

Change-Id: Ie026cbf9af133352919a4536c152b6d35cb8c0a7
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
src/plugins/android/jar/src/org/qtproject/qt5/android/multimedia/QtAndroidMediaPlayer.java