Compare commits

...

2 Commits

Author SHA1 Message Date
bhe-talendbj
d4c0c17cdd fix(TUP-40554): Merge branch 'maintenance/8.0' into bhe/bugfix/TUP-40554_80 2023-10-27 14:37:58 +08:00
bhe-talendbj
b1f148565e fix(TUP-40554): add debug log 2023-10-27 14:29:34 +08:00

View File

@@ -18,6 +18,7 @@ import java.util.Arrays;
import java.util.List;
import java.util.StringTokenizer;
import org.apache.commons.lang3.StringUtils;
import org.eclipse.jface.preference.IPersistentPreferenceStore;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.ui.PlatformUI;
@@ -229,6 +230,11 @@ public final class PreferenceManipulator implements ITalendCorePrefConstants {
}
public void setLastProject(String project) {
if (StringUtils.isEmpty(project)) {
RuntimeException e = new RuntimeException("setLastProject project is empty!");
ExceptionHandler.process(e);
throw e;
}
store.setValue(LAST_USED_PROJECT, project);
save();
}