Skip to content
This repository has been archived by the owner on Aug 31, 2019. It is now read-only.

Commit

Permalink
Fix NPE from duplicating TranslatableComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
jedediah committed Oct 1, 2015
1 parent 9c1884a commit 2dd792d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ public TranslatableComponent(TranslatableComponent original)
{
super( original );
setTranslate( original.getTranslate() );
List<BaseComponent> temp = new ArrayList<BaseComponent>();
for ( BaseComponent baseComponent : original.getWith() )
{
with.add( baseComponent.duplicate() );
temp.add( baseComponent.duplicate() );
}
setWith( temp );
}

/**
Expand Down

0 comments on commit 2dd792d

Please sign in to comment.