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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user