forked from j62/ctbrec
1
0
Fork 0

Don't add model to models or update it, if uid is not set

This commit is contained in:
0xboobface 2018-12-13 17:09:40 +01:00
parent 9d86a0531c
commit dc8a4d4190
1 changed files with 5 additions and 0 deletions

View File

@ -420,6 +420,11 @@ public class MyFreeCamsClient {
return;
}
// uid not set, we can't identify this model
if(state.getUid() == null || state.getUid() <= 0) {
return;
}
MyFreeCamsModel model = models.getIfPresent(state.getUid());
if(model == null) {
model = mfc.createModel(state.getNm());