@@ -58,6 +58,10 @@ private boolean mustBeInstalled(IArduinoPlatform platform) {
58
58
IArduinoPlatformPackageIndex parentIndex = parentPkg .getPackageIndex ();
59
59
InstallableVersion [] inScopeVersions = myShownPlatforms .get (parentIndex .getID ()).get (parentPkg .getID ())
60
60
.get (platform .getID ());
61
+ if (inScopeVersions ==null ) {
62
+ //in case there are no versions
63
+ return false ;
64
+ }
61
65
for (InstallableVersion version : inScopeVersions ) {
62
66
if (version .mustBeInstalled ()) {
63
67
return true ;
@@ -69,6 +73,10 @@ private boolean mustBeInstalled(IArduinoPlatform platform) {
69
73
private boolean mustBeInstalled (IArduinoPlatformPackageIndex packageIndex ) {
70
74
TreeMap <String , TreeMap <String , InstallableVersion []>> inScopeVersions = myShownPlatforms
71
75
.get (packageIndex .getID ());
76
+ if (inScopeVersions ==null ) {
77
+ //in case there are no versions
78
+ return false ;
79
+ }
72
80
for (TreeMap <String , InstallableVersion []> platform : inScopeVersions .values ()) {
73
81
for (InstallableVersion [] versions : platform .values ()) {
74
82
for (InstallableVersion version : versions ) {
@@ -85,6 +93,10 @@ private boolean mustBeInstalled(IArduinoPackage pkg) {
85
93
IArduinoPlatformPackageIndex parentIndex = pkg .getPackageIndex ();
86
94
TreeMap <String , InstallableVersion []> inScopeVersions = myShownPlatforms .get (parentIndex .getID ())
87
95
.get (pkg .getID ());
96
+ if (inScopeVersions ==null ) {
97
+ //in case there are no versions
98
+ return false ;
99
+ }
88
100
for (InstallableVersion [] versions : inScopeVersions .values ()) {
89
101
for (InstallableVersion version : versions ) {
90
102
if (version .mustBeInstalled ()) {
0 commit comments