Commit 313c4c6d by Antti Tönkyrä

while(bugfix) try { fix } catch(Tuomari t) { ... }

1 parent 3d061594
......@@ -143,11 +143,12 @@ public class UserView extends GenericCDIView {
// croppedImage = null;
try {
logger.info("Cropped image {}x{}", croppedImage.getLeft(),
croppedImage.getTop());
logger.info("Cropped data bytesize {}, type {}", croppedImage.getBytes().length, croppedImage.getOriginalFilename());
if(croppedImage == null) return null;
logger.info("Cropped image {}x{}", croppedImage.getLeft(), croppedImage.getTop());
logger.info("Cropped data bytesize {}, type {}", croppedImage.getBytes().length, croppedImage.getOriginalFilename());
try {
UserImage newImage =
userbean.saveCroppedImage(user.getUser().getCurrentImage(),
croppedImage.getLeft(), croppedImage.getTop(),
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!