Skip to content

Commit

Permalink
Removed check for name (MID-2503)
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Sep 10, 2015
1 parent b3260af commit 0bb8e17
Showing 1 changed file with 1 addition and 5 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010-2013 Evolveum
* Copyright (c) 2010-2015 Evolveum
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -253,11 +253,7 @@ public <T extends ObjectType> String addObject(PrismObject<T> object, ModelExecu
object.checkConsistence();

T objectType = object.asObjectable();
// FIXME??
prismContext.adopt(objectType);
if (!(objectType instanceof ShadowType)) {
PrismValidate.notEmpty(objectType.getName(), "Object name must not be null or empty.");
}

OperationResult result = parentResult.createSubresult(ADD_OBJECT);
result.addParams(new String[] { "object" }, object);
Expand Down

0 comments on commit 0bb8e17

Please sign in to comment.