Skip to content

Commit 3ca37ea

Browse files
Do not look for path tokens if path is None
1 parent 6900072 commit 3ca37ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

alias-test/src/test/python/aliastest/verify/verifier_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (c) 2020, 2021, Oracle Corporation and/or its affiliates.
2+
Copyright (c) 2020, 2022, Oracle Corporation and/or its affiliates.
33
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
44
"""
55

core/src/main/python/wlsdeploy/aliases/aliases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def get_wlst_attribute_name_and_value(self, location, model_attribute_name, mode
512512
model_val = alias_utils.convert_to_type(LIST, model_attribute_value,
513513
delimiter=MODEL_LIST_DELIMITER)
514514

515-
if uses_path_tokens:
515+
if uses_path_tokens and model_val is not None:
516516
for index, item in enumerate(model_val):
517517
item_value = self._model_context.replace_token_string(str(item))
518518
model_val[index] = item_value

0 commit comments

Comments
 (0)