Improved: Remove redundant null checks (OFBIZ-10911)

Redundant null checks detected by Eclipse has been removed.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1857896 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mathieu Lirzin
2019-04-21 09:37:49 +00:00
parent d7127ce9ea
commit d5e3c2d3d4
30 changed files with 163 additions and 204 deletions
@@ -139,7 +139,6 @@ public class NotificationServices {
} else {
// otherwise just report the error
Debug.logError("prepareNotification failed: " + bodyResult.get(ModelService.ERROR_MESSAGE), module);
body = null;
}
}
@@ -139,9 +139,7 @@ public class QRCodeServices {
if (UtilValidate.isEmpty(defaultLogoImage)) {
Debug.logError("Your logo image file(" + qrCodeDefaultLogoImage + ") cannot be read by javax.imageio.ImageIO. Please use png, jpeg formats instead of ico and etc.", module);
}
} catch (IllegalArgumentException e) {
defaultLogoImage = null;
} catch (IOException e) {
} catch (IllegalArgumentException | IOException e) {
defaultLogoImage = null;
}
}