- HANDLE_LEAK(256442) ConnectionHistoryJSONParser
- HANDLE_LEAK(256443) SSHUtil
- HANDLE_LEAK(256444) SSHUtil
- HANDLE_LEAK(256449) ConnectionHistoryJSONWriter
- HANDLE_LEAK(256444) WebGitIndexParser
- DEREF_OF_NULL.EX(256624) RootstrapViewProvider
- DEREF_OF_NULL.EX(256626) RootstrapViewProvider
Signed-off-by: JaeMin Kim <jm.jemin.kim@samsung.com>
while ((line = in.readLine()) != null) {
out.write(line + "\n");
}
+
+ if (cacheFile.exists()) {
+ return true;
+ }
+
} catch (MalformedURLException e) {
e.printStackTrace();
throw new InterruptedException(e.toString());
IOUtil.tryClose(in);
IOUtil.tryClose(out);
}
- if (cacheFile.exists()) {
- return true;
- }
return false;
}
}
}
} catch (Exception e) {
- IOUtil.tryClose(fileReader);
logger.error(resources.getString("Err.filaedToParseJson"), e);
return false;
+ } finally {
+ IOUtil.tryClose(fileReader);
}
return true;
}
String json = gson.toJson(ConnectionHistory.getConnectionList());
writer = new FileWriter(jsonFile);
writer.write(json);
- writer.close();
} catch (Exception e) {
logger.error(resources.getString("Err.filaedToParseJson"), e);
return false;
}
}
- if (createAction != null) {
+ if (createAction != null && connectAction != null && disconnectAction != null) {
if (RemoteConnectionManager.connected()) {
createAction.getAction().setEnabled(true);
connectAction.getAction().setEnabled(false);
return false;
}
} catch (Exception e) {
+ logger.error("Failed to register authorized key", e);
+ } finally {
IOUtil.tryClose(fileReader);
IOUtil.tryClose(reader);
- logger.error("Failed to register authorized key", e);
}
return true;
}