We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 855a1a8 commit 3eeb63bCopy full SHA for 3eeb63b
build-tools/xml-repository/src/main/java/com/tyron/xml/completion/repository/api/ResourceNamespace.java
@@ -145,8 +145,7 @@ public String prefixToUri(@NotNull String namespacePrefix) {
145
@NotNull
146
public static ResourceNamespace fromPackageName(@NotNull String packageName) {
147
assert !Strings.isNullOrEmpty(packageName);
148
- if (packageName.equals(SdkConstants.ANDROID_NS_NAME)) {
149
- // Make sure ANDROID is a singleton, so we can use object identity to check for it.
+ if (packageName != null && packageName.equals(SdkConstants.ANDROID_NS_NAME)) {
150
return ANDROID;
151
} else {
152
return new ResourceNamespace(SdkConstants.URI_PREFIX + packageName, packageName);
0 commit comments