Skip to content

Commit 3f42bfa

Browse files
fix map key parsing
Summary: - as title Reviewed By: michalmuskala, VLanvin, TD5 Differential Revision: D73665031 fbshipit-source-id: 3acb363db0c9640895ebae7fc9acc66575ab8f0f
1 parent f9e1b7c commit 3f42bfa

File tree

1 file changed

+1
-1
lines changed
  • eqwalizer/src/main/scala/com/whatsapp/eqwalizer/ast

1 file changed

+1
-1
lines changed

eqwalizer/src/main/scala/com/whatsapp/eqwalizer/ast/Types.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ object Types {
245245
res = cur.strip() :: res
246246
res.reverse
247247
}
248-
if (str.charAt(0) == '{') {
248+
if (str.nonEmpty && str.charAt(0) == '{') {
249249
val substrs = split(str.substring(1, str.length - 1))
250250
TupleKey(substrs.map(parse))
251251
} else {

0 commit comments

Comments
 (0)