From 82a1caa4ed9bac77b194b6200e09f6d5edfe4746 Mon Sep 17 00:00:00 2001 From: Björn Hagemeister Date: Thu, 9 Oct 2014 15:57:08 +0200 Subject: Adapted to type adaption of contentOperatingSystem. --- .../java/org/openslx/imagemaster/serverconnection/ImageProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/org/openslx/imagemaster/serverconnection/ImageProcessor.java b/src/main/java/org/openslx/imagemaster/serverconnection/ImageProcessor.java index 1d627fc..70ecbc7 100644 --- a/src/main/java/org/openslx/imagemaster/serverconnection/ImageProcessor.java +++ b/src/main/java/org/openslx/imagemaster/serverconnection/ImageProcessor.java @@ -61,7 +61,7 @@ public class ImageProcessor throw new ImageDataException( ImageDataError.INVALID_DATA, "Image name not set." ); if ( imageData.ownerLogin == null || !DbUser.exists( imageData.ownerLogin ) ) throw new ImageDataException( ImageDataError.INVALID_DATA, "Invalid image owner." ); - if ( imageData.operatingSystem == null || imageData.operatingSystem.isEmpty() ) + if ( !imageData.isSetOperatingSystem() ) throw new ImageDataException( ImageDataError.INVALID_DATA, "Content operating system not set." ); if ( imageData.fileSize <= 0 ) throw new ImageDataException( ImageDataError.INVALID_DATA, "File size is too small." ); -- cgit v1.2.3-55-g7522