Skip to content

Commit 827b790

Browse files
Prevent exception when attempting to find the base version in create
1 parent 7b2f371 commit 827b790

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/python/wlsdeploy/util/weblogic_helper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,9 @@ def get_next_higher_order_version_number(self, version_number):
241241
periods = version_number.count('.')
242242
result = None
243243
if periods > 0:
244-
result = string_utils.rsplit(version_number, '.', 1)[0]
244+
rsplit = string_utils.rsplit(version_number, '.', 1)
245+
if len(rsplit) > 0:
246+
result = rsplit[0]
245247
return result
246248

247249
def encrypt(self, plain_text, domain_directory):

0 commit comments

Comments
 (0)