Skip to content

Commit

Permalink
[fix](fe) Fix PluginMgr.getActivePluginList npt (#41466)
Browse files Browse the repository at this point in the history
```
Exception in thread "AuditEventProcessor" java.lang.NullPointerException: at index 2
    at com.google.common.collect.ObjectArrays.checkElementNotNull(ObjectArrays.java:232)
    at com.google.common.collect.ObjectArrays.checkElementsNotNull(ObjectArrays.java:222)
    at com.google.common.collect.ObjectArrays.checkElementsNotNull(ObjectArrays.java:216)
    at com.google.common.collect.ImmutableList.construct(ImmutableList.java:353)
    at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:265)
    at org.apache.doris.plugin.PluginMgr.getActivePluginList(PluginMgr.java:300)
    at org.apache.doris.qe.AuditEventProcessor$Worker.run(AuditEventProcessor.java:120)
    at java.base/java.lang.Thread.run(Thread.java:833)
```

## Proposed changes

Issue Number: close #xxx

<!--Describe your changes.-->
  • Loading branch information
SWJTU-ZhangLei authored Oct 8, 2024
1 parent 958d638 commit 5fd2ef7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,10 @@ public final List<Plugin> getActivePluginList(PluginType type) {

m.values().forEach(d -> {
if (d.getStatus() == PluginStatus.INSTALLED) {
if (d.getPlugin() == null) {
LOG.warn("PluginLoader({}) status is INSTALLED, but plugin is null", d);
return;
}
l.add(d.getPlugin());
}
});
Expand Down

0 comments on commit 5fd2ef7

Please sign in to comment.