Fixed
Status Update
Comments
uc...@google.com <uc...@google.com>
ls...@google.com <ls...@google.com>
ls...@google.com <ls...@google.com>
ls...@google.com <ls...@google.com>
jg...@google.com <jg...@google.com>
jg...@google.com <jg...@google.com>
an...@google.com <an...@google.com> #2
Looks like ContextWrapper.getClassLoader()
is throwing an NPE.
java_vm_ext.cc:591] JNI DETECTED ERROR IN APPLICATION: JNI FindClass called with pending exception java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.ClassLoader android.content.Context.getClassLoader()' on a null object reference
java_vm_ext.cc:591] at java.lang.ClassLoader android.content.ContextWrapper.getClassLoader() (ContextWrapper.java:176)
java_vm_ext.cc:591] at java.lang.ClassLoader com.android.tools.agent.app.inspection.AppInspectionService.findClassLoader() (AppInspectionService.java:435)
java_vm_ext.cc:591] at void com.android.tools.agent.app.inspection.AppInspectionService.<init>(long) (AppInspectionService.java:88)
java_vm_ext.cc:591] at com.android.tools.agent.app.inspection.AppInspectionService com.android.tools.agent.app.inspection.AppInspectionService.createAppInspectionService() (AppInspectionService.java:-2)
java_vm_ext.cc:591] at com.android.tools.agent.app.inspection.AppInspectionService com.android.tools.agent.app.inspection.AppInspectionService.instance() (AppInspectionService.java:55)
java_vm_ext.cc:591]
java_vm_ext.cc:591] in call to FindClass
an...@google.com <an...@google.com> #3
I added NPE protection that resorts to a "safe" way to get a classloader.
Description
But when you open the drawable in the editor, it is normally displayed.
Build: AI-211.7628.21.2111.8193401, 202202170712,
AI-211.7628.21.2111.8193401, JRE 11.0.11+0-b60-7590822x64 JetBrains s.r.o., OS Linux(amd64) v5.4.0-100-generic, screens 3840.0x2160.0
AS: Bumblebee | 2021.1.1 Patch 2; Kotlin plugin: 211-1.6.10-release-923-AS7442.40; Android Gradle Plugin: 7.0.3; Gradle: 7.0.2; Gradle JDK: version 11.0.11; NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: 3.16.3, latest from SDK: 3.18.1-g262b901, from PATH: 3.16.3Source: user_sentiment_feedback