OSDN Git Service

am 6892cab9: am e4195e1c: Fix a type error in the allocation of non-moving arrays.
authorCarl Shapiro <cshapiro@google.com>
Wed, 20 Apr 2011 15:24:59 +0000 (08:24 -0700)
committerAndroid Git Automerger <android-git-automerger@android.com>
Wed, 20 Apr 2011 15:24:59 +0000 (08:24 -0700)
* commit '6892cab90362639344373ce6d71c8fdd9903ae22':
  Fix a type error in the allocation of non-moving arrays.

1  2 
vm/native/dalvik_system_VMRuntime.c

@@@ -98,10 -128,9 +98,9 @@@ static void Dalvik_dalvik_system_VMRunt
  {
      ClassObject* elementClass = (ClassObject*) args[1];
      int length = args[2];
-     ArrayObject* newArray;
  
      if (elementClass == NULL) {
 -        dvmThrowException("Ljava/lang/NullPointerException;", NULL);
 +        dvmThrowNullPointerException(NULL);
          RETURN_VOID();
      }
      if (length < 0) {