Quellcode durchsuchen

fix bug:接口/rel-manual-calc/query查询报空指针

lijie vor 3 Jahren
Ursprung
Commit
9219921b34

+ 3 - 0
src/main/java/com/persagy/proxy/calculation/service/impl/AdmManualRelCalServiceImpl.java

@@ -387,6 +387,9 @@ public class AdmManualRelCalServiceImpl implements AdmManualRelCalService {
      */
     private void createCommonResultObj(ObjectDigital objectDigital,ObjectNode temp) {
         ObjectNode infos = objectDigital.getInfos();
+        if (null==infos){
+            return;
+        }
         temp.set("bimId",infos.get("bimId"));
         temp.set("buildingId",infos.get("buildingId"));
         temp.set("floorId",infos.get("floorId"));