future hai 1 ano
pai
achega
5405444fdd
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      assets/script/tools.ts

+ 1 - 0
assets/script/tools.ts

@@ -77,6 +77,7 @@ export class tools  {
     }
 
     public static substringRankRegionName(node:Node,string:string) {
+        if(string==undefined||string==null) { return "" }
         let lab_component = node.getComponent(Label)
         if(lab_component==null) { return }
         if(string.length>4) {