Skip to content

Commit 449b753

Browse files
committed
Add error message when platform is undefined
1 parent 026f0d0 commit 449b753

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/DeviceManager.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,8 @@ class DeviceManager
586586
device.setPlatform( pm.getLocalPlatform(pf));
587587
}
588588

589-
if(success){
589+
590+
if(success && (device.getPlatform()!=null)){
590591
this.status = StatusMessage.newSuccess( this.status.append("[Device Manager] Platform (SDK) of target device installed"));
591592
}else{
592593
this.status = StatusMessage.newError( this.status.append("[Device Manager] Fail"));
@@ -608,6 +609,7 @@ class DeviceManager
608609
getEnrollStatus(){
609610
return this.status;
610611
}
612+
611613
}
612614

613615

0 commit comments

Comments
 (0)