--- 
+++ 
@@ -23,7 +23,9 @@
             return false;
         }
         PathIterator iterator1 = p1.getPathIterator(null);
-        PathIterator iterator2 = p1.getPathIterator(null);
+         PathIterator iterator2 = p2.getPathIterator(null);
+        double[] endPaint = null;
+        GeneralPath whitePath = null;
         double[] d1 = new double[6];
         double[] d2 = new double[6];
         boolean done = iterator1.isDone() && iterator2.isDone();