From f625c937eeb5e6a90977debc977f5c51a26d29d7 Mon Sep 17 00:00:00 2001 From: dchandler Date: Sun, 14 Dec 2003 05:54:07 +0000 Subject: [PATCH] ACIP {B} was not being treated like {BA}; instead, an error was resulting. All the five prefixes were affected. --- source/org/thdl/tib/text/ttt/TPairList.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/org/thdl/tib/text/ttt/TPairList.java b/source/org/thdl/tib/text/ttt/TPairList.java index ad08667..991bef7 100644 --- a/source/org/thdl/tib/text/ttt/TPairList.java +++ b/source/org/thdl/tib/text/ttt/TPairList.java @@ -318,7 +318,9 @@ class TPairList { // Handle the first pair specially -- it could be a prefix. if (ddebug) System.out.println("i is " + 0); - if ((mayHavePrefix = get(0).isPrefix()) && null == get(0).getRight()) { + if ((mayHavePrefix = get(0).isPrefix()) + && sz > 1 + && null == get(0).getRight()) { // special case: we must have a branch in the parse tree // for the initial part of this pair list. For example, // is DKHYA D+KH+YA or D-KH+YA? It depends on prefix