openvidu-java-client: fix unit test

pull/739/head
pabloFuente 2022-06-13 18:32:30 +02:00
parent 735d4a96bd
commit bb23e65897
1 changed files with 1 additions and 2 deletions

View File

@ -23,7 +23,6 @@ import java.util.Map;
import com.google.gson.Gson; import com.google.gson.Gson;
import com.google.gson.JsonObject; import com.google.gson.JsonObject;
import com.google.gson.JsonParser; import com.google.gson.JsonParser;
import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken; import com.google.gson.reflect.TypeToken;
/** /**
@ -414,7 +413,7 @@ public class SessionProperties {
JsonObject mediaNodeJson; JsonObject mediaNodeJson;
try { try {
mediaNodeJson = JsonParser.parseString(params.get("mediaNode").toString()).getAsJsonObject(); mediaNodeJson = JsonParser.parseString(params.get("mediaNode").toString()).getAsJsonObject();
} catch (JsonSyntaxException e) { } catch (Exception e) {
try { try {
Gson gson = new Gson(); Gson gson = new Gson();
Type gsonType = new TypeToken<Map>() { Type gsonType = new TypeToken<Map>() {