Skip to content

Commit

Permalink
Fixed NPE when neither mongeez.database nor spring.data.mongodb.datab…
Browse files Browse the repository at this point in the history
…ase is set
  • Loading branch information
hzpz committed Dec 1, 2015
1 parent 489fed9 commit 39ba675
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public Mongeez mongeez(MongoProperties mongoProperties, Mongo mongo) {
if (StringUtils.hasText(mongeezProperties.getDatabase())) {
mongeez.setDbName(mongeezProperties.getDatabase());
} else {
mongeez.setDbName(mongoProperties.getDatabase());
mongeez.setDbName(mongoProperties.getMongoClientDatabase());
}
if (mongeezProperties.hasCredentials()) {
MongoAuth auth = mongeezProperties.createMongoAuth();
Expand Down

0 comments on commit 39ba675

Please sign in to comment.