diff options
author | Niraj Modi | 2017-05-08 10:48:53 +0000 |
---|---|---|
committer | Niraj Modi | 2017-05-08 10:48:53 +0000 |
commit | 8aee71e2a3c107c4991c7f5dfb1a36555bbfd992 (patch) | |
tree | 8857029375e37d7a87a7976f3d0f9feb284e9ac1 /bundles/org.eclipse.swt/Eclipse SWT/common | |
parent | 25bbe47ab6320cff1d536618b9eb3990e356d977 (diff) | |
download | eclipse.platform.swt-8aee71e2a3c107c4991c7f5dfb1a36555bbfd992.tar.gz eclipse.platform.swt-8aee71e2a3c107c4991c7f5dfb1a36555bbfd992.tar.xz eclipse.platform.swt-8aee71e2a3c107c4991c7f5dfb1a36555bbfd992.zip |
Bug 516258: IllegalArgumentException below ViewLabelProvider.getImage
(thrown in DPIUtil.validateAndGetImagePathAtZoom)
Change-Id: I0d893602a7223be8f106076806de55e85ee4bb85
Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/common')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/DPIUtil.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/DPIUtil.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/DPIUtil.java index 520b8d97cf..bfd8b09748 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/DPIUtil.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/DPIUtil.java @@ -394,7 +394,7 @@ public static ImageData validateAndGetImageDataAtZoom (ImageDataProvider provide found [0] = (data != null); /* If image is null when (zoom != 100%), fall-back to image at 100% zoom */ if (zoom != 100 && !found [0]) data = provider.getImageData (100); - if (data == null) SWT.error (SWT.ERROR_INVALID_ARGUMENT); + if (data == null) SWT.error (SWT.ERROR_INVALID_ARGUMENT, null, ": ImageDataProvider implementation class[" + provider.getClass() + "] returns null ImageData at 100% zoom."); return data; } @@ -409,7 +409,7 @@ public static String validateAndGetImagePathAtZoom (ImageFileNameProvider provid found [0] = (filename != null); /* If image is null when (zoom != 100%), fall-back to image at 100% zoom */ if (zoom != 100 && !found [0]) filename = provider.getImagePath (100); - if (filename == null) SWT.error (SWT.ERROR_INVALID_ARGUMENT); + if (filename == null) SWT.error (SWT.ERROR_INVALID_ARGUMENT, null, ": ImageFileNameProvider implementation class[" + provider.getClass() + "] returns null filename at 100% zoom."); return filename; } |