fix for index out of bounds error
This commit is contained in:
parent
12cdccf3bb
commit
20929abc58
|
@ -2356,6 +2356,9 @@ public class ProfileUtilities extends TranslatingUtilities {
|
|||
}
|
||||
}
|
||||
if (profile != null) {
|
||||
if (profile.getSnapshot().getElement().isEmpty()) {
|
||||
throw new DefinitionException(context.formatMessage(I18nConstants.SNAPSHOT_IS_EMPTY, profile.getVersionedUrl()));
|
||||
}
|
||||
ElementDefinition e = profile.getSnapshot().getElement().get(0);
|
||||
String webroot = profile.getUserString("webroot");
|
||||
|
||||
|
|
Loading…
Reference in New Issue