]> gitweb.fperrin.net Git - Dictionary.git/commitdiff
added assert.
authorthadh <thadh@thadh-macbookpro>
Sun, 7 Oct 2012 18:35:31 +0000 (11:35 -0700)
committerthadh <thadh@thadh-macbookpro>
Sun, 7 Oct 2012 18:35:31 +0000 (11:35 -0700)
src/com/hughes/android/dictionary/engine/HtmlEntry.java

index 2284d2052b8535232b5b6fe63d20ff542d4c8b4e..86ebca228756400f055722c289b9544c667ce2f2 100644 (file)
@@ -164,6 +164,7 @@ public class HtmlEntry extends AbstractEntry implements RAFSerializable<HtmlEntr
     
     public static String formatQuickdicUrl(final String indexShortName, final String text) {
         assert !indexShortName.contains(":");
+        assert text.length() > 0;
         return String.format("qd:%s:%s", indexShortName, text);
     }