Skip to content

Commit

Permalink
fix: disable plugin npe
Browse files Browse the repository at this point in the history
  • Loading branch information
CC11001100 committed Jun 30, 2023
1 parent 3dff18e commit b8fab6c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public ClassVisitor initial(ClassVisitor classVisitor, ClassContext context, Pol
*/
public static boolean isPluginDisable(String pluginName) {
// 现在插件比较少,O(n)性能损耗能够接受
return PropertyUtils.getDisabledPlugins().contains(pluginName);
List<String> l = PropertyUtils.getDisabledPlugins();
return l != null && PropertyUtils.getDisabledPlugins().contains(pluginName);
}

}

0 comments on commit b8fab6c

Please sign in to comment.