From 248b17be23d7467930a90e286778963751693078 Mon Sep 17 00:00:00 2001 From: fyf Date: Thu, 24 Aug 2023 17:45:03 +0800 Subject: [PATCH] 232324454 --- app/src/main/java/com/example/bpa/helper/UpdateManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/example/bpa/helper/UpdateManager.java b/app/src/main/java/com/example/bpa/helper/UpdateManager.java index be12f24..bbfe41b 100644 --- a/app/src/main/java/com/example/bpa/helper/UpdateManager.java +++ b/app/src/main/java/com/example/bpa/helper/UpdateManager.java @@ -338,7 +338,7 @@ public class UpdateManager { title_date.setText("发布时间:" + DataHelper.longToString(Long.parseLong(newVersionInfo.releaseDate), "yyyy-MM-dd HH:mm:ss")); //title_size.setText("大小:"+newVersionInfo.getString("versionSize")); //提示内容按";"进行整合,这里拆分到数组中 - String desc = newVersionInfo.description.replace(";", "\n"); + String desc =newVersionInfo.description==null?"暂无描述":( newVersionInfo.description.replace(";", "\n")); versionDesc.setText(desc); Button positiveButton = (Button) win.findViewById(R.id.PositiveButton); Button negativeButton = (Button) win.findViewById(R.id.NegativeButton);