Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -56,7 +56,7 @@ public class LwM2MClientOtaInfo { |
56 | 56 | public LwM2MClientOtaInfo(String endpoint, OtaPackageType type, Integer strategyCode, String baseUrl) { |
57 | 57 | this.endpoint = endpoint; |
58 | 58 | this.type = type; |
59 | - this.fwStrategy = LwM2MFirmwareUpdateStrategy.fromStrategyFwByCode(strategyCode); | |
59 | + this.fwStrategy = strategyCode != null ? LwM2MFirmwareUpdateStrategy.fromStrategyFwByCode(strategyCode) : LwM2MFirmwareUpdateStrategy.OBJ_5_BINARY; | |
60 | 60 | this.baseUrl = baseUrl; |
61 | 61 | } |
62 | 62 | ... | ... |