Skip to content

Commit

Permalink
Fix NPE in RepositoryCache
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Sep 12, 2018
1 parent 13e91d7 commit 2c40490
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -271,7 +271,7 @@ public <T extends ObjectType> String addObject(PrismObject<T> object, RepoAddOpt
// DON't cache the object here. The object may not have proper "JAXB" form, e.g. some pieces may be
// DOM element instead of JAXB elements. Not to cache it is safer and the performance loss
// is acceptable.
if (options.isOverwrite()) {
if (options != null && options.isOverwrite()) {
invalidateCacheEntry(object.getCompileTimeClass(), oid);
} else {
// just for sure (the object should not be there but ...)
Expand Down

0 comments on commit 2c40490

Please sign in to comment.