File tree 2 files changed +4
-1
lines changed
io.sloeber.core/src/io/sloeber/core/tools
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,9 @@ public static boolean addIncludeFolder(ICConfigurationDescription configurationD
76
76
List <IPath > IncludePaths , boolean isWorkspacePath ) {
77
77
78
78
boolean confDesckMustBeSet = false ;
79
+ if (IncludePaths == null ) {
80
+ return false ;
81
+ }
79
82
ICLanguageSetting [] languageSettings = configurationDescription .getRootFolderDescription ()
80
83
.getLanguageSettings ();
81
84
int pathSetting = ICSettingEntry .VALUE_WORKSPACE_PATH ;
Original file line number Diff line number Diff line change @@ -449,7 +449,7 @@ public static boolean adjustProjectDescription(ICConfigurationDescription confde
449
449
List <IPath > foldersToAddToInclude = foldersToInclude .get (INCLUDE );
450
450
boolean descriptionMustBeSet = Helpers .addIncludeFolder (confdesc , foldersToAddToInclude , true );
451
451
List <IPath > foldersToRemoveFromBuildPath = foldersToInclude .get (REMOVE );
452
- if (! foldersToRemoveFromBuildPath .isEmpty ()) {
452
+ if (( foldersToRemoveFromBuildPath != null ) && (! foldersToRemoveFromBuildPath .isEmpty () )) {
453
453
ICResourceDescription cfgd = confdesc .getResourceDescription (new Path (new String ()), true );
454
454
ICSourceEntry [] sourceEntries = cfgd .getConfiguration ().getSourceEntries ();
455
455
for (IPath curFile : foldersToRemoveFromBuildPath ) {
You can’t perform that action at this time.
0 commit comments