Skip to content

Commit 1a10097

Browse files
committed
Fix possible NPE crash in copy actions of recordtimeline
1 parent 9fab343 commit 1a10097

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/mchorse/blockbuster/client/gui/dashboard/panels/recording_editor/GuiRecordTimeline.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,8 @@ public void copyActions()
872872
{
873873
for (Action action : frame)
874874
{
875+
if (action == null) continue;
876+
875877
NBTTagCompound actionNBT = new NBTTagCompound();
876878

877879
actionNBT.setString("ActionType", ActionRegistry.NAME_TO_CLASS.inverse().get(action.getClass()));

0 commit comments

Comments
 (0)