Skip to content

Commit

Permalink
fix nullpointer problems
Browse files Browse the repository at this point in the history
  • Loading branch information
firm1 committed Dec 16, 2016
1 parent 31a5238 commit 1508a4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static void deleteFile(File file) {
if(file.delete()) {
logger.debug("Répertoire " + file.getAbsolutePath() + " Supprimé");
} else {
MainApp.getLogger().error("Impossible de supprimer le répertoire "+file.getAbsolutePath());
logger.error("Impossible de supprimer le répertoire "+file.getAbsolutePath());
}
}
else {
Expand All @@ -40,15 +40,15 @@ public static void deleteFile(File file) {
if(file.delete()) {
logger.debug("Répertoire " + file.getAbsolutePath() + " Supprimé");
} else {
MainApp.getLogger().error("Impossible de supprimer le répertoire "+file.getAbsolutePath());
logger.error("Impossible de supprimer le répertoire "+file.getAbsolutePath());
}
}
}
} else {
if(file.delete()) {
logger.debug("Fichier " + file.getAbsolutePath() + " Supprimé");
} else {
MainApp.getLogger().error("Impossible de supprimer le fichier "+file.getAbsolutePath());
logger.error("Impossible de supprimer le fichier "+file.getAbsolutePath());
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,12 @@ public boolean isTrusted(X509Certificate[] chain, String authType) throws Certif

} catch (NoSuchAlgorithmException e) {
logger.error(e.getMessage(), e);
cm.close();
} catch (KeyManagementException e) {
logger.error(e.getMessage(), e);
cm.close();
} catch (KeyStoreException e) {
logger.error(e.getMessage(), e);
} finally {
cm.close();
}

Expand Down

0 comments on commit 1508a4d

Please sign in to comment.