Browse Source

REPORT-50096 fix 预防npe

bugfix/10.0
hades 4 years ago
parent
commit
cc5c4753c9
  1. 3
      designer-base/src/main/java/com/fr/design/data/datapane/connect/JDBCDefPane.java

3
designer-base/src/main/java/com/fr/design/data/datapane/connect/JDBCDefPane.java

@ -255,6 +255,9 @@ public class JDBCDefPane extends JPanel {
}
public JDBCDatabaseConnection update() {
if (jdbcDatabase == null) {
jdbcDatabase = new JDBCDatabaseConnection();
}
Object driveItem = this.driverComboBox.getSelectedItem();
jdbcDatabase.setDriver(driveItem == null ? null : driveItem.toString());
jdbcDatabase.setURL(this.urlTextField.getText().trim());

Loading…
Cancel
Save