Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[netatmo] NPE in HomeEvent class #17552

Closed
clinique opened this issue Oct 13, 2024 · 0 comments · Fixed by #17553
Closed

[netatmo] NPE in HomeEvent class #17552

clinique opened this issue Oct 13, 2024 · 0 comments · Fixed by #17553
Assignees
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@clinique
Copy link
Contributor

2024-10-13 11:22:11.793 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception: 
java.lang.NullPointerException: Cannot invoke "java.time.ZonedDateTime.getZone()" because "this.expiresAt" is null
	at org.openhab.binding.netatmo.internal.api.dto.HomeEvent$Snapshot.url(HomeEvent.java:43) ~[?:?]
	at org.openhab.binding.netatmo.internal.api.dto.HomeEvent.internalGetUrl(HomeEvent.java:115) ~[?:?]
	at org.openhab.binding.netatmo.internal.api.dto.HomeEvent.getSnapshotUrl(HomeEvent.java:103) ~[?:?]
	at org.openhab.binding.netatmo.internal.handler.channelhelper.EventChannelHelper.internalGetEvent(EventChannelHelper.java:75) ~[?:?]
	at org.openhab.binding.netatmo.internal.handler.channelhelper.ChannelHelper.getChannelState(ChannelHelper.java:58) ~[?:?]
	at org.openhab.binding.netatmo.internal.handler.capability.ChannelHelperCapability.lambda$1(ChannelHelperCapability.java:65) ~[?:?]
	at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:?]
	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?]
	at java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:720) ~[?:?]
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:?]
	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:?]
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[?:?]
	at org.openhab.binding.netatmo.internal.handler.capability.ChannelHelperCapability.afterNewData(ChannelHelperCapability.java:59) ~[?:?]
	at org.openhab.binding.netatmo.internal.handler.capability.Capability.setNewData(Capability.java:98) ~[?:?]
	at org.openhab.binding.netatmo.internal.handler.CommonInterface.setNewData(CommonInterface.java:187) ~[?:?]
	at org.openhab.binding.netatmo.internal.handler.capability.SecurityCapability.lambda$13(SecurityCapability.java:119) ~[?:?]
	at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:?]
	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?]
	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?]
	at java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:720) ~[?:?]
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:?]
	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:?]
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[?:?]
	at org.openhab.binding.netatmo.internal.handler.capability.SecurityCapability.addEventIfKnownObject(SecurityCapability.java:119) ~[?:?]
	at org.openhab.binding.netatmo.internal.handler.capability.SecurityCapability.updateHomeEvent(SecurityCapability.java:111) ~[?:?]
	at org.openhab.binding.netatmo.internal.handler.capability.Capability.setNewData(Capability.java:80) ~[?:?]
	at org.openhab.binding.netatmo.internal.handler.CommonInterface.setNewData(CommonInterface.java:187) ~[?:?]
	at java.util.ArrayList.forEach(ArrayList.java:1511) ~[?:?]
	at org.openhab.binding.netatmo.internal.handler.CommonInterface.proceedWithUpdate(CommonInterface.java:214) ~[?:?]
	at org.openhab.binding.netatmo.internal.handler.capability.RefreshCapability.proceedWithUpdate(RefreshCapability.java:87) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
@clinique clinique added the bug An unexpected problem or unintended behavior of an add-on label Oct 13, 2024
@clinique clinique self-assigned this Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant