Skip to content

Commit

Permalink
Add additional null checks in private ScanInfo class
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhubbell committed Aug 2, 2017
1 parent 1a6a047 commit 445829a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Expand Up @@ -785,6 +785,8 @@ public boolean equals(Object obj)
if (obj instanceof ScanInfo)
{
ScanInfo other = (ScanInfo) obj;
if ((m_device == null && other.m_device != null) || (m_device != null && other.m_device == null))
return false;
return m_device.getAddress().equals(other.m_device.getAddress());
}
return false;
Expand Down
Expand Up @@ -22,6 +22,7 @@
import java.util.Random;
import java.util.UUID;
import com.idevicesinc.sweetblue.tester.R;
import com.idevicesinc.sweetblue.utils.Utils_Reflection;
import com.idevicesinc.sweetblue.utils.Utils_String;
import com.idevicesinc.sweetblue.utils.Uuids;

Expand Down

0 comments on commit 445829a

Please sign in to comment.