mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix NPE
GitOrigin-RevId: 569558f7643499dee8c1b1cb210037dbe32223bc
This commit is contained in:
committed by
intellij-monorepo-bot
parent
707da7f53a
commit
9d0e3e09be
@@ -206,7 +206,8 @@ public class JavacFileData {
|
||||
out.writeByte(FIELD_MARKER);
|
||||
out.writeUTF(((JavacRef.JavacField)ref).getContainingClass());
|
||||
out.writeUTF(ref.getOwnerName());
|
||||
out.writeUTF(((JavacRef.JavacField)ref).getDescriptor());
|
||||
final String descriptor = ((JavacRef.JavacField)ref).getDescriptor();
|
||||
out.writeUTF(descriptor == null? "" : descriptor);
|
||||
}
|
||||
else if (ref instanceof JavacRef.JavacMethod) {
|
||||
out.writeByte(METHOD_MARKER);
|
||||
|
||||
@@ -166,7 +166,7 @@ public interface JavacRef {
|
||||
super(name, modifiers);
|
||||
myContainingClassName = containingClassName;
|
||||
myOwnerName = ownerName;
|
||||
myDescriptor = descriptor;
|
||||
myDescriptor = descriptor != null && !descriptor.isEmpty()? descriptor : null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user