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

fix pubber null exception #324

Merged
merged 3 commits into from
May 9, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pubber/src/main/java/daq/pubber/Pubber.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
import udmi.schema.FamilyDiscoveryEvent;
import udmi.schema.FamilyDiscoveryState;
import udmi.schema.FamilyLocalnetModel;
import udmi.schema.Hardware;
import udmi.schema.Level;
import udmi.schema.Metadata;
import udmi.schema.PointEnumerationEvent;
Expand Down Expand Up @@ -334,6 +335,7 @@ private void processCloudConfig(CloudIotConfig cloudIotConfig) {
private void initializeDevice() {
deviceState.system = new SystemState();
deviceState.pointset = new PointsetState();
deviceState.system.hardware = new Hardware();
deviceState.pointset.points = new HashMap<>();
devicePoints.points = new HashMap<>();

Expand Down