Commit 55c5df6
committed
Don't compare nullptr string - Fixes #120
In AdafruitIO_Group::call there is a comparison with the feedname
of the update. If the onMessage() call didn't provide a feed name,
the feed pointer is null. The code also checks for this, but
it does it after comparing with a string. Reverse the check
so a short-circuiting or can do the right thing.1 parent 6ed54d3 commit 55c5df6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
| 348 | + | |
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| |||
0 commit comments