Merge pull request #915 from opendatatrentino/fixNullCellToString
Fixes Cell.toString failing on null value
This commit is contained in:
commit
4eb6eb6eda
@ -193,6 +193,10 @@ public class Cell implements HasFields, Jsonizable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return value.toString();
|
if (value != null){
|
||||||
|
return value.toString();
|
||||||
|
} else {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user