Merge remote-tracking branch 'origin/patch'

This commit is contained in:
Ryan Kurtz
2024-08-13 09:42:46 -04:00
2 changed files with 4 additions and 4 deletions

View File

@@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -621,7 +621,7 @@ public class GhidraJarBuilder implements GhidraLaunchable {
if (clazz == null) {
System.out.println("Couldn't load " + path);
}
else if (ClassSearcher.isClassOfInterest(clazz)) {
else {
extensionPointClasses.add(clazz.getName());
}
}

View File

@@ -174,7 +174,7 @@ public class ClassSearcher {
}
List<Class<? extends T>> list = new ArrayList<>();
for (ClassFileInfo info : extensionPointSuffixToInfoMap.get(suffix)) {
for (ClassFileInfo info : extensionPointSuffixToInfoMap.getOrDefault(suffix, Set.of())) {
if (falsePositiveCache.contains(info)) {
continue;