Skip to content

Commit

Permalink
DF: fix potential null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbuessow committed Jan 7, 2024
1 parent e72c384 commit 79247ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion GlucoseDataField/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
minSdkVersion="3.3.1"
name="@Strings.AppName"
type="datafield"
version="1.0.13.pre">
version="1.0.14.pre">
<iq:products>
<iq:product id="descentmk2s"/>
<iq:product id="fenix5plus"/>
Expand Down
3 changes: 3 additions & 0 deletions GlucoseDataField/source/GlucoseDataFieldApp.mc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ class GlucoseDataFieldApp extends Application.AppBase {
if (data == null) {
data = new Shared.Data();
}
if (view == null) {
view = new LabelView(data, method(:onTimerStop));
}
view.heartRateCollector.reset();
server.onBackgroundData(result, data);
view.onNewGlucose();
Expand Down

0 comments on commit 79247ec

Please sign in to comment.