File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/java/com/neuronrobotics/sdk/addons/kinematics Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -552,7 +552,7 @@ public double getDelta() {
552552 */
553553 public void setDelta (double d ) {
554554 this .d = d ;
555- newLinkConf .fireChangeEvent ();
555+ if ( newLinkConf != null ) newLinkConf .fireChangeEvent ();
556556 }
557557
558558 /**
@@ -573,7 +573,7 @@ public void setRadius(double radius) {
573573 this .radius = radius ;
574574 transX_J =null ;
575575 transX =null ;
576- newLinkConf .fireChangeEvent ();
576+ if ( newLinkConf != null ) newLinkConf .fireChangeEvent ();
577577 }
578578
579579 /**
@@ -583,7 +583,7 @@ public void setRadius(double radius) {
583583 */
584584 public void setTheta (double theta ) {
585585 this .theta = theta ;
586- newLinkConf .fireChangeEvent ();
586+ if ( newLinkConf != null ) newLinkConf .fireChangeEvent ();
587587 }
588588
589589 /**
@@ -595,7 +595,7 @@ public void setAlpha(double alpha) {
595595 this .alpha = alpha ;
596596 rotX =null ;
597597 rotX_J =null ;
598- newLinkConf .fireChangeEvent ();
598+ if ( newLinkConf != null ) newLinkConf .fireChangeEvent ();
599599 }
600600
601601 /**
You can’t perform that action at this time.
0 commit comments