Don't add model to models or update it, if uid is not set
This commit is contained in:
parent
9d86a0531c
commit
dc8a4d4190
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue