Skip to content

Commit

Permalink
marmalade_CallIntMethodV: return if method is NULL, fixes NULL pointe…
Browse files Browse the repository at this point in the history
…r dereference in doodlejump
  • Loading branch information
krnlyng committed Apr 16, 2014
1 parent eaa1a1b commit 71d15be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/marmalade.c
Expand Up @@ -469,6 +469,11 @@ marmalade_CallIntMethodV(JNIEnv *env, jobject p1, jmethodID p2, va_list p3)
{
jmethodID method = p2;

if(NULL == p2)
{
return -1;
}

MODULE_DEBUG_PRINTF("marmalade_CallIntMethodV(%s)\n",p2->name);

if(method_is(getOrientation))
Expand Down

0 comments on commit 71d15be

Please sign in to comment.