Fixed WARNING: JNI call made with exception pending
Merge pull request #45 from dunse/master

Fix: WARNING in native method: JNI call made with exception pending