matcher null pointer fix
This commit is contained in:
parent
ff8bf0bddf
commit
367002bf3d
|
@ -1440,14 +1440,15 @@ public class TorService extends Service implements TorServiceConstants, TorConst
|
|||
|
||||
Pattern pattern = Pattern.compile(IPADDRESS_PATTERN);
|
||||
Matcher matcher = null;
|
||||
if(nodeDetails!=null)
|
||||
if(nodeDetails!=null){
|
||||
matcher = pattern.matcher(nodeDetails);
|
||||
if (matcher!=null && matcher.find()) {
|
||||
if (matcher.find()) {
|
||||
Log.d(TAG, "ip: "+matcher.group());
|
||||
exitIP = matcher.group();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue