fix
This commit is contained in:
1 parent
771de74a03
commit
cfe1a9e729
1 file changed
+2
-1
@@ -1164,7 +1164,8 @@ public class CarpetExpression
|
|||||||
String reqString = requested.getString();
|
String reqString = requested.getString();
|
||||||
String structureName = FeatureGenerator.featureToStructure.get(reqString);
|
String structureName = FeatureGenerator.featureToStructure.get(reqString);
|
||||||
if (structureName == null) throw new InternalExpressionException("Unknown structure: " + reqString);
|
if (structureName == null) throw new InternalExpressionException("Unknown structure: " + reqString);
|
||||||
structure = Feature.STRUCTURES.get(structureName);
|
structure = Feature.STRUCTURES.get(structureName.toLowerCase(Locale.ROOT));
|
||||||
|
if (structure == null) throw new InternalExpressionException("Unsupported structure: " + structureName);
|
||||||
}
|
}
|
||||||
if (lv.size() > locator.offset+1)
|
if (lv.size() > locator.offset+1)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user