Framesync nullpointer fix

This commit is contained in:
Jindra Petřík
2022-10-29 15:29:43 +02:00
parent aa97ec3d18
commit ddde47498a

View File

@@ -1295,7 +1295,11 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
private void showSelectedName() {
if (selectedDepth > -1 && frame > -1 && timelined != null) {
DepthState ds = timelined.getTimeline().getFrame(frame).layers.get(selectedDepth);
Frame f = timelined.getTimeline().getFrame(frame);
if (f == null) {
return;
}
DepthState ds = f.layers.get(selectedDepth);
if (ds != null) {
CharacterTag cht = timelined.getTimeline().swf.getCharacter(ds.characterId);
if (cht != null) {