diff --git a/src/main/java/games/rednblack/editor/controller/commands/component/UpdatePolygonVerticesCommand.java b/src/main/java/games/rednblack/editor/controller/commands/component/UpdatePolygonVerticesCommand.java index 3a5f6e84..7939b109 100644 --- a/src/main/java/games/rednblack/editor/controller/commands/component/UpdatePolygonVerticesCommand.java +++ b/src/main/java/games/rednblack/editor/controller/commands/component/UpdatePolygonVerticesCommand.java @@ -46,7 +46,8 @@ public class UpdatePolygonVerticesCommand extends EntityModifyRevertibleCommand //Force TextureRegionComponent refresh to immediately update follower size and position TextureRegionComponent textureRegionComponent = SandboxComponentRetriever.get(entity, TextureRegionComponent.class); - textureRegionComponent.executeRefresh(entity); + if (textureRegionComponent != null) + textureRegionComponent.executeRefresh(entity); HyperLap2DFacade.getInstance().sendNotification(MsgAPI.ITEM_DATA_UPDATED, entity);