Skip to content

Commit

Permalink
Fix NullPointerException at migration PENDING.
Browse files Browse the repository at this point in the history
  • Loading branch information
crossroad0201 committed Nov 16, 2016
1 parent 7d536d4 commit 89a8d76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ object MigrationResultProtocol extends DefaultJsonProtocol {
import spray.json._

implicit val DateFormat = new RootJsonFormat[Date] {
override def write(value: Date): JsValue = if (value == null) JsNull else JsString(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'").format(value))
override def read(json: JsValue): Date = ???
override def write(value: Date): JsValue = JsString(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'").format(value))
}
implicit val migrationInfoFormat = jsonFormat6(MigrationInfo.apply)
implicit val migrationResultFormat = jsonFormat5(MigrationResult.apply)
Expand Down

0 comments on commit 89a8d76

Please sign in to comment.