Browse Source

[공통][Bug] stripHtml null 체크

hyodong.min 7 years ago
parent
commit
20375bc12a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/src/main/java/kr/co/zumo/app/lifeplus/util/StringUtil.java

+ 3 - 0
app/src/main/java/kr/co/zumo/app/lifeplus/util/StringUtil.java

@@ -213,6 +213,9 @@ public class StringUtil {
    * @return
    */
   public static String stripHtml(String html) {
+    if (null == html) {
+      return "";
+    }
     if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) {
       return Html.fromHtml(html, Html.FROM_HTML_MODE_LEGACY).toString();
     }