1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-28 19:35:36 +02:00

Bug 491286: Fixed NPE opening page C++ Build Variables in Properties/Preferences

Change-Id: I5ed71665980936a3000a987a75bf2f2c962027ec
This commit is contained in:
Andrew Gvozdev 2016-09-19 13:59:48 -04:00
parent 149e41fd46
commit 29ae1df652

View file

@ -101,7 +101,7 @@ public class EnvironmentVariableSupplier extends CoreMacroSupplierBase {
}
private static boolean isTextList(String str, String delimiter) {
if (delimiter == null || delimiter.isEmpty())
if (str == null || delimiter == null || delimiter.isEmpty())
return false;
// Regex: ([^:]+:)+[^:]*