Skip to content

Commit

Permalink
Fix null pointer exception (apache#3675)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonalEvans authored and gesterzhou committed Jun 6, 2019
1 parent 10b75a9 commit 3ed79ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public ResultModel deregisterDriver(
CacheConfig cacheConfig = ccService.getCacheConfig(null);
if (cacheConfig != null) {
for (JndiBindingsType.JndiBinding dataSource : cacheConfig.getJndiBindings()) {
if (dataSource.getJdbcDriverClass().equals(driverClassName)) {
if (driverClassName.equals(dataSource.getJdbcDriverClass())) {
return ResultModel
.createError("Driver is currently in use by " + dataSource.getJndiName());
}
Expand Down

0 comments on commit 3ed79ad

Please sign in to comment.