File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
spine-android/src/main/java/com/esotericsoftware/spine/android Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 11[versions ]
2- agp = " 8.3.1 "
2+ agp = " 8.11.2 "
33kotlin = " 1.9.0"
44coreKtx = " 1.10.1"
55junit = " 4.13.2"
Original file line number Diff line number Diff line change 11# Thu Apr 25 11:12:13 CEST 2024
22distributionBase =GRADLE_USER_HOME
33distributionPath =wrapper/dists
4- distributionUrl =https\://services.gradle.org/distributions/gradle-8.4 -bin.zip
4+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.14.3 -bin.zip
55zipStoreBase =GRADLE_USER_HOME
66zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change @@ -351,10 +351,18 @@ public void setRendering (Boolean rendering) {
351351 }
352352
353353 private void loadFrom (AndroidSkeletonDrawableLoader loader ) {
354+ if (controller == null ) {
355+ throw new IllegalStateException (
356+ "SpineController is not set. When using SpineView from XML, call setController(...) before loadFromAsset/loadFromFile/loadFromHttp/loadFromDrawable." );
357+ }
354358 Handler mainHandler = new Handler (Looper .getMainLooper ());
355359 Thread backgroundThread = new Thread ( () -> {
356360 final AndroidSkeletonDrawable skeletonDrawable = loader .load ();
357361 mainHandler .post ( () -> {
362+ if (controller == null ) {
363+ throw new IllegalStateException (
364+ "SpineController became null before initialization. Ensure setController(...) is called and not cleared until loading completes." );
365+ }
358366 computedBounds = boundsProvider .computeBounds (skeletonDrawable );
359367 updateCanvasTransform ();
360368
You can’t perform that action at this time.
0 commit comments