mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 16:48:43 +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 () {
|
||||
if (state.getCurrent(ui.trackButtons.getCheckedIndex()) == null) {
|
||||
if (state != null && state.getCurrent(ui.trackButtons.getCheckedIndex()) == null) {
|
||||
ui.animationList.getSelection().setProgrammaticChangeEvents(false);
|
||||
ui.animationList.setSelected(null);
|
||||
ui.animationList.getSelection().setProgrammaticChangeEvents(true);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user