Index: openstreetmap/josm/actions/mapmode/SelectAction.java
===================================================================
--- openstreetmap/josm/actions/mapmode/SelectAction.java	(revision 3992)
+++ openstreetmap/josm/actions/mapmode/SelectAction.java	(working copy)
@@ -162,6 +162,11 @@
             startingDraggingPos = new Point(e.getX(), e.getY());
         }
 
+        if( lastMousePos == null ) {
+            lastMousePos = e.getPoint();
+            return;
+        }
+
         if (!initialMoveThresholdExceeded) {
             int dxp = lastMousePos.x - e.getX();
             int dyp = lastMousePos.y - e.getY();
