Commit 34e6bce
committed
fix: NPE in issue steve-community#38
reason: SendLocalListTask tries to set operation name in the constructor of
the super class, where a call to getRequest method of SendLocalListTask is made.
but, in order to create the request, ocppTagService field has to be set, which
did not happen yet, since we are in the constructor of the super class.
therefore, a NPE occurs.
use a different strategy like parsing the name of the task object. this implies
that we always have to use reasonable task names that reflect the operation name.1 parent 29d63e1 commit 34e6bce
2 files changed
Lines changed: 15 additions & 3 deletions
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
| 76 | + | |
79 | 77 | | |
80 | 78 | | |
81 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
32 | 46 | | |
0 commit comments