You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thee the following NPE ocasionally when detaching a class
java.lang.NullPointerException
at java.base/java.util.Hashtable.put(Unknown Source)
at javassist.ClassPool.cacheCtClass(ClassPool.java:236)
at javassist.CtClass.detach(CtClass.java:1427)
Code used here:
CtClass ctClass = pool.makeClass(new ByteArrayInputStream(getClassBytes()));
try {
//do something with the class...
} finally {
ctClass.detach();
}
As I cache ClassPool object, it might get confused when called from differen threads?
The text was updated successfully, but these errors were encountered:
I am still getting the null pointer issue in the version 3.27.0-GA
Caused by: java.lang.NullPointerException
at javassist.ClassPool.cacheCtClass(ClassPool.java:236)
at javassist.CtClass.detach(CtClass.java:1427)
at com.microsoft.intune.mam.TransformationUnit.writeClassesToDirectory(TransformationUnit.java:275)
at com.microsoft.intune.mam.TransformationUnit.writeOutput(TransformationUnit.java:126)
at com.microsoft.intune.mam.BuildTimeMamifier.mamify(BuildTimeMamifier.java:131)
at com.microsoft.intune.mam.MamifyTransformBase.transform(MamifyTransformBase.java:195)
at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:284)
at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:69)
... 126 more
New issue Link
https://github.com/jboss-javassist/javassist/issues/442
I thee the following NPE ocasionally when detaching a class
Code used here:
As I cache ClassPool object, it might get confused when called from differen threads?
The text was updated successfully, but these errors were encountered: