summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:37:21 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:37:21 +0000
commit00cb465904f3a2f7febda41b19bbfe0dca8a1115 (patch)
tree502d985bc0834cb2319bf21dd836e87389098591 /pdf-over-gui/src/main/java/at
parentef903c44e546d295b62131dad2eb129f662694d5 (diff)
downloadpdf-over-00cb465904f3a2f7febda41b19bbfe0dca8a1115.tar.gz
pdf-over-00cb465904f3a2f7febda41b19bbfe0dca8a1115.tar.bz2
pdf-over-00cb465904f3a2f7febda41b19bbfe0dca8a1115.zip
Guard against empty drop data
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@420 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java
index a4835460..09457d35 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java
@@ -203,6 +203,10 @@ public class DataSourceSelectComposite extends StateComposite {
@Override
public void drop(DropTargetEvent event) {
if (fileTransfer.isSupportedType(event.currentDataType)) {
+ if (event.data == null) {
+ log.error("Dropped file name was null"); //$NON-NLS-1$
+ return;
+ }
String[] files = (String[]) event.data;
if (files.length > 0) {
// Only taking first file ...