Skip to content

Commit fc9e9e9

Browse files
authored
Merge pull request #114 from jumpserver/pr@v3@fix_pg_blob_1
feat: fix pg blob
2 parents 5346f33 + 726c95c commit fc9e9e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/framework/src/main/java/org/jumpserver/chen/framework/datasource/base/BaseSQLActuator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ private void executeStatement(SQLExecutePlan plan, Statement statement, SQLQuery
171171
fs.add(HexUtils.bytesToHex((byte[]) obj));
172172
} else if (obj instanceof Blob) {
173173
fs.add(HexUtils.bytesToHex(((Blob) obj).getBytes(1, (int) ((Blob) obj).length())));
174-
} else if (obj.getClass().getSimpleName().equalsIgnoreCase("pgobject")) {
174+
} else if (obj!= null && obj.getClass().getSimpleName().equalsIgnoreCase("pgobject")) {
175175
fs.add(obj.toString());
176176
} else {
177177
fs.add(obj);

0 commit comments

Comments
 (0)