Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #36 from deal-engine/iban/null-fix
Browse files Browse the repository at this point in the history
Fix null check that wasn't actually working.
  • Loading branch information
fabianhjr-dealengine authored Sep 25, 2023
2 parents aa1c877 + 59032fd commit e940026
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ trait FinaglePostgresDecoders {
vd: ValueDecoder[T],
withRescue: Throwable => T = (e: Throwable) =>
e match {
case (e: IllegalStateException) if e.getMessage == "Value is NULL" =>
case (_: com.twitter.finagle.postgres.codec.NullValue.type) =>
null.asInstanceOf[T]
case _ => fail(e.getMessage)
}
Expand Down

0 comments on commit e940026

Please sign in to comment.