SkeletonControl: fix syntax error

Conflicts:
	jme3-core/src/main/java/com/jme3/animation/SkeletonControl.java
This commit is contained in:
Kirill Vainer 2016-04-02 14:04:36 -04:00
parent c6c6b48bda
commit c03e831f3c

View File

@ -204,6 +204,9 @@ public class SkeletonControl extends AbstractControl implements Cloneable, JmeCl
* @param skeleton the skeleton * @param skeleton the skeleton
*/ */
public SkeletonControl(Skeleton skeleton) { public SkeletonControl(Skeleton skeleton) {
if (skeleton == null) {
throw new IllegalArgumentException("skeleton cannot be null");
}
this.skeleton = skeleton; this.skeleton = skeleton;
} }