diff --git a/src/client/js/Widgets/DiagramDesigner/AutoRouter.Path.js b/src/client/js/Widgets/DiagramDesigner/AutoRouter.Path.js
index <HASH>..<HASH> 100644
--- a/src/client/js/Widgets/DiagramDesigner/AutoRouter.Path.js
+++ b/src/client/js/Widgets/DiagramDesigner/AutoRouter.Path.js
@@ -508,15 +508,17 @@ define( ['js/logger',
             this.endports[i].assertValid();
         }
 
-        if (this.isConnected()) {
-            assert(this.points.length !== 0, 
+        if (this.isAutoRouted()) {
+            if (this.isConnected()) {
+                assert(this.points.length !== 0, 
                 'ARPath.assertValid: this.points.length !== 0 FAILED');
-            var points = this.getPointList();
-            points.assertValid();
+                var points = this.getPointList();
+                points.assertValid();
 
-        }else{
-            assert(this.points.length === 0, 
+            } else {
+                assert(this.points.length === 0, 
                 'ARPath.assertValid: this.points.length === 0 FAILED');
+            }
         }
 
         // If it has a startpoint, must also have a startport
Fixed assertValid for custom paths


Former-commit-id: 0c4af9ce<I>bdaa9cc<I>fa<I>b5fb9c<I>c<I>e1