diff --git a/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/models/Bullet.java b/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/models/Bullet.java index a67e589..fde346a 100644 --- a/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/models/Bullet.java +++ b/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/models/Bullet.java @@ -32,14 +32,16 @@ public Bullet(Object3D body, Animation3D animation) { super(body, animation); + initUuid(); } public Bullet(Solid3D body, Animation3D animation) { super(body, animation); + initUuid(); } public void initUuid() { - if (uuid.equals("")) { + if (uuid == null || uuid.equals("")) { uuid = UUID.randomUUID().toString(); } }