mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-26 18:33:06 +00:00
Fix annotation processor issue with anonymous classes in JDT
This commit is contained in:
1 parent
df3d7c5c26
commit
49fd7e3da7
1 file changed
+5
-1
@@ -512,7 +512,11 @@ class AnnotatedMixins implements Messager {
|
||||
Elements elements = this.processingEnv.getElementUtils();
|
||||
TypeElement element = elements.getTypeElement(name);
|
||||
if (element != null) {
|
||||
return new TypeHandle(element);
|
||||
try {
|
||||
return new TypeHandle(element);
|
||||
} catch (NullPointerException ex) {
|
||||
// probably bad package
|
||||
}
|
||||
}
|
||||
|
||||
int lastDotPos = name.lastIndexOf('.');
|
||||
|
||||
Reference in new issue
Block a user