425696 - start.jar --add-to-start={module} results in error

This commit is contained in:
Joakim Erdfelt 2014-01-14 11:43:21 -07:00
parent 3a16944fd7
commit dec67094bf
1 changed files with 3 additions and 2 deletions

View File

@ -98,8 +98,9 @@ public final class Props implements Iterable<Prop>
if (props.isEmpty())
{
// This is a stupid programming error, we should have something, even system properties
throw new PropsException("Props is empty: no properties declared!?");
// nothing to expand
// this situation can occur from --add-to-startd on a new blank base directory
return str;
}
Pattern pat = Pattern.compile("(?<=[^$]|^)(\\$\\{[^}]*\\})");