Open JunkerMartin opened 3 years ago
@JunkerMartin Seems that this is also already fixed: https://github.com/kaklakariada/fritzbox-java-api/blob/141f563b492a1265c3d25dde006cbdeba978b091/src/main/java/com/github/kaklakariada/fritzbox/model/homeautomation/Device.java#L57
The tag-sequence "\<switch>\<state>\</state>...\</switch>" is mapped with the class SwitchState. The object may be null sometimes. The method Device().getSwitchState() currently requires it to be instantiated. Null is checked with SwitchState().isNull().