Parcel: log invalid Parcel when obtaining

Log, not error, in case an error causes more issues. This
is unexpected though. This provides us an earlier error
so we are sure that the issue comes from the pool and
not from the code that is using the pool.

Bug: 330965161
Test: boot
Change-Id: If4bf1ac17307d7aea8ba746d16108e8cf542a6e0
diff --git a/core/java/android/os/Parcel.java b/core/java/android/os/Parcel.java
index 352c9d2..430093b 100644
--- a/core/java/android/os/Parcel.java
+++ b/core/java/android/os/Parcel.java
@@ -554,6 +554,11 @@
             }
             res.mReadWriteHelper = ReadWriteHelper.DEFAULT;
         }
+
+        if (res.mNativePtr == 0) {
+            Log.e(TAG, "Obtained Parcel object has null native pointer. Invalid state.");
+        }
+
         return res;
     }