Commit 4a2542d 1 parent 004c6c5 commit 4a2542d Copy full SHA for 4a2542d
File tree 1 file changed +7
-3
lines changed
projects/sdk/core/manager/src/main/java/com/tencent/shadow/core/manager
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -115,10 +115,14 @@ public final void onInstallCompleted(PluginConfig pluginConfig) {
115
115
116
116
protected InstalledPlugin .Part getPluginPartByPartKey (String uuid , String partKey ) {
117
117
InstalledPlugin installedPlugin = mInstalledDao .getInstalledPluginByUUID (uuid );
118
- if (installedPlugin ! = null ) {
119
- return installedPlugin . getPart ( partKey );
118
+ if (installedPlugin = = null ) {
119
+ throw new RuntimeException ( "没有找到uuid:" + uuid );
120
120
}
121
- throw new RuntimeException ("没有找到Part partKey:" + partKey );
121
+ InstalledPlugin .Part part = installedPlugin .getPart (partKey );
122
+ if (part == null ) {
123
+ throw new RuntimeException ("没有找到Part partKey:" + partKey );
124
+ }
125
+ return part ;
122
126
}
123
127
124
128
protected InstalledPlugin getInstalledPlugin (String uuid ) {
You can’t perform that action at this time.
0 commit comments