Skip to content

Commit

Permalink
Fix(EMM): fix missing tag used as NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebuzz committed Nov 15, 2024
1 parent b888db3 commit 0a60969
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,10 @@ private void resolveRestrictions() {

try {
jsonServerConfig.put("address", serverConfig.getString("server_url"));
jsonServerConfig.put("tag", serverConfig.getString("server_tag"));

String tag = serverConfig.containsKey("server_tag") ? serverConfig.getString("server_tag") : "";
jsonServerConfig.put("tag", tag);

jsonServerConfig.put("login", serverConfig.getString("server_login"));
jsonServerConfig.put("pass", serverConfig.getString("server_password"));
jsonServerConfig.put("itemtype", serverConfig.getString("server_itemtype"));
Expand Down

0 comments on commit 0a60969

Please # to comment.