Community
Participate
Working Groups
The logic in FileContentProvider.getInstallSizeFor allows a combination whereby a null entry array is accessed: if ((pluginEntries == null || pluginEntries.length == 0) && (nonPluginEntries == null || nonPluginEntries.length == 0)) { return ContentEntryModel.UNKNOWN_SIZE; } In the code above, is one pluginEntires !=null but nonPluginEntires==null, the code will not return and a NPE will be generated.
replaced with if (pluginEntries == null || nonPluginEntries == null) return ContentEntryModel.UNKNOWN_SIZE;