File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/java/de/taimos/gpsd4java/types Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ public boolean equals(final Object obj) {
8484
8585 @ Override
8686 public String toString () {
87- return "DevicesObject{devices=" + this .devices . size () + "}" ;
87+ return "DevicesObject{devices=" + (( this .devices == null ) ? 0 : this . devices . size () ) + "}" ;
8888 }
8989
9090}
Original file line number Diff line number Diff line change @@ -193,11 +193,11 @@ public String toString() {
193193 sb .append (", active=" );
194194 sb .append (this .active );
195195 sb .append (", fixes=" );
196- sb .append (this .fixes . size ());
196+ sb .append ((( this .fixes == null ) ? 0 : this . fixes . size () ));
197197 sb .append (", skyviews=" );
198- sb .append (this .skyviews . size ());
198+ sb .append ((( this .skyviews == null ) ? 0 : this . skyviews . size () ));
199199 sb .append (", gst=" );
200- sb .append (this .gst . size ());
200+ sb .append ((( this .gst == null ) ? 0 : this . gst . size () ));
201201 sb .append ("}" );
202202
203203 return sb .toString ();
You can’t perform that action at this time.
0 commit comments