1. opensymphony
  2. quartz

Commits

jhouse  committed 19a25a2

work-around later postgres versions are returning a zero byte array from blob column.

git-svn-id: http://svn.opensymphony.com/svn/quartz/trunk@64169f7d36a-ea1c-0410-88ea-9fd03e4c9665

  • Participants
  • Parent commits bed91b8
  • Branches master

Comments (0)

Files changed (1)

File src/java/org/quartz/impl/jdbcjobstore/PostgreSQLDelegate.java

View file
  • Ignore whitespace
         
         Object obj = null;
         
-        if(bytes != null) {
+        if(bytes != null && bytes.length != 0) {
             binaryInput = new ByteArrayInputStream(bytes);
         
             ObjectInputStream in = new ObjectInputStream(binaryInput);