summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBjörn Hagemeister2014-10-09 15:57:08 +0200
committerBjörn Hagemeister2014-10-09 15:57:08 +0200
commit82a1caa4ed9bac77b194b6200e09f6d5edfe4746 (patch)
tree840bf64f9be03d086c724338ca0345ec8874d744 /src
parentAdapted DbImage to changes of type of operatingSystem. (diff)
downloadmasterserver-82a1caa4ed9bac77b194b6200e09f6d5edfe4746.tar.gz
masterserver-82a1caa4ed9bac77b194b6200e09f6d5edfe4746.tar.xz
masterserver-82a1caa4ed9bac77b194b6200e09f6d5edfe4746.zip
Adapted to type adaption of contentOperatingSystem.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/openslx/imagemaster/serverconnection/ImageProcessor.java2
1 files changed, 1 insertions, 1 deletions
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." );