This is an automated email from the ASF dual-hosted git repository.

harbs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 0c43356  handle null
0c43356 is described below

commit 0c43356ee0bf2eae4b59ffded3ff2b8ed9216826
Author: Harbs <[email protected]>
AuthorDate: Sun Jan 16 01:09:23 2022 +0200

    handle null
---
 .../Core/src/main/royale/org/apache/royale/utils/array/arraysMatch.as  | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/array/arraysMatch.as
 
b/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/array/arraysMatch.as
index 54e27b4..2998dff 100644
--- 
a/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/array/arraysMatch.as
+++ 
b/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/array/arraysMatch.as
@@ -31,6 +31,9 @@ package org.apache.royale.utils.array
         */
        public function 
arraysMatch(first:Array,second:Array,deep:Boolean=false,level:int=0):Boolean
        {
+               if(!first || !second)
+                       return false;
+               
                if(first.length != second.length)
                        return false;
                

Reply via email to