mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-23 20:15:32 +00:00
Fixed: Goto declaration - exception when exists QName with 0 namespace index
This commit is contained in:
@@ -532,13 +532,19 @@ public class Multiname {
|
||||
}
|
||||
Namespace otherNs = other.getSingleNamespace(otherCpool);
|
||||
Namespace thisNs = getSingleNamespace(thisCpool);
|
||||
if (otherNs.kind != thisNs.kind) {
|
||||
return false;
|
||||
if (thisNs != null && otherNs != null) {
|
||||
if (otherNs.kind != thisNs.kind) {
|
||||
return false;
|
||||
}
|
||||
if (otherNs.kind == Namespace.KIND_PRIVATE) {
|
||||
return false;
|
||||
}
|
||||
if (!Objects.equals(otherNs.getName(otherCpool).toRawString(), thisNs.getName(thisCpool).toRawString())) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (otherNs.kind == Namespace.KIND_PRIVATE) {
|
||||
return false;
|
||||
}
|
||||
if (!Objects.equals(otherNs.getName(otherCpool).toRawString(), thisNs.getName(thisCpool).toRawString())) {
|
||||
|
||||
if ((thisNs == null && otherNs != null) || (otherNs == null && thisNs != null)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user