File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
PluginCore/src/com/plugin/core Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -184,9 +184,11 @@ public static synchronized int installPlugin(String srcPluginFile) {
184
184
}
185
185
186
186
PackageInfo packageInfo = sApplication .getPackageManager ().getPackageArchiveInfo (srcPluginFile , PackageManager .GET_GIDS );
187
- pluginDescriptor .setApplicationTheme (packageInfo .applicationInfo .theme );
188
- pluginDescriptor .setApplicationIcon (packageInfo .applicationInfo .icon );
189
- pluginDescriptor .setApplicationLogo (packageInfo .applicationInfo .logo );
187
+ if (packageInfo != null ) {
188
+ pluginDescriptor .setApplicationTheme (packageInfo .applicationInfo .theme );
189
+ pluginDescriptor .setApplicationIcon (packageInfo .applicationInfo .icon );
190
+ pluginDescriptor .setApplicationLogo (packageInfo .applicationInfo .logo );
191
+ }
190
192
191
193
// 第3步,检查插件是否已经存在,若存在删除旧的
192
194
PluginDescriptor oldPluginDescriptor = getPluginDescriptorByPluginId (pluginDescriptor .getPackageName ());
You can’t perform that action at this time.
0 commit comments