The exception occured in unit tests for CLI after changes applied
in previous commit. When SDK installation is not found the
InstallPathConfig.getSDKPath() returns null but it isn't checked properly
in PathManager.getTizenSdkInstallPath(). In that case it should also return
null.
Change-Id: Ic503d836318ad2f2bbd02d5df9eaa187d79c15ba
defaultPath = InstallPathConfig.getSDKPath();
- File file = new File(defaultPath);
- if (file == null || !file.exists()) {
- defaultPath = null;
+ if (defaultPath != null) {
+ File file = new File(defaultPath);
+ if (file == null || !file.exists()) {
+ defaultPath = null;
+ }
}
return defaultPath;