mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[libgdx] Fixed Skeleton Viewer NPE when project fails to open.
This commit is contained in:
parent
d19a4b22db
commit
15145fe709
@ -703,7 +703,7 @@ public class SkeletonViewer extends ApplicationAdapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void render () {
|
void render () {
|
||||||
if (state.getCurrent(ui.trackButtons.getCheckedIndex()) == null) {
|
if (state != null && state.getCurrent(ui.trackButtons.getCheckedIndex()) == null) {
|
||||||
ui.animationList.getSelection().setProgrammaticChangeEvents(false);
|
ui.animationList.getSelection().setProgrammaticChangeEvents(false);
|
||||||
ui.animationList.setSelected(null);
|
ui.animationList.setSelected(null);
|
||||||
ui.animationList.getSelection().setProgrammaticChangeEvents(true);
|
ui.animationList.getSelection().setProgrammaticChangeEvents(true);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user