summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/clcutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_app/src/clcutils.cpp b/src/mir_app/src/clcutils.cpp
index 6b10fd8e65..5010ba3ff1 100644
--- a/src/mir_app/src/clcutils.cpp
+++ b/src/mir_app/src/clcutils.cpp
@@ -541,7 +541,7 @@ int fnGetDropTargetInformation(HWND hwnd, ClcData *dat, POINT pt)
cli.pfnGetRowByIndex(dat, dat->iDragItem, &movecontact, &movegroup);
if (hit == dat->iDragItem)
return DROPTARGET_ONSELF;
- if (hit == -1 || hitFlags & CLCHT_ONITEMEXTRA)
+ if (hit == -1 || movecontact == NULL || (hitFlags & CLCHT_ONITEMEXTRA))
return DROPTARGET_ONNOTHING;
if (movecontact->type == CLCIT_GROUP) {