Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
Merge pull request #152 from Stratio/fix/DECISION-271_null_values_act…
Browse files Browse the repository at this point in the history
…ions

[DECISION-271] Fixed deserialization of null values in Action requests
  • Loading branch information
josepablofernandez committed Mar 31, 2016
2 parents e477d92 + ab95327 commit e7dfc97
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,16 @@ public byte[] serialize(StratioStreamingMessage object) {
ColumnType c = null;

for (ColumnNameTypeValue messageColumn : object.getColumns()) {
c = new ColumnType(messageColumn.getColumn(), messageColumn.getValue().toString(),
messageColumn.getValue()
.getClass().getName());

if ( messageColumn.getValue() != null){

c = new ColumnType(messageColumn.getColumn(), messageColumn.getValue().toString(),
messageColumn.getValue().getClass().getName());

} else {
c = new ColumnType(messageColumn.getColumn(), null, null);
}

columns.add(c);
}

Expand Down

0 comments on commit e7dfc97

Please sign in to comment.