Add null check to IpManager.dump()
Test: as follows
- built (bullhead)
- flashed
- booted
- runtest frameworks-net passes
Bug: 36650508
Change-Id: I2270bec20b966de487048f0ea0c97360e242cd9d
This commit is contained in:
@@ -608,7 +608,7 @@ public class IpManager extends StateMachine {
|
||||
}
|
||||
|
||||
public void dump(FileDescriptor fd, PrintWriter writer, String[] args) {
|
||||
if (args.length > 0 && DUMP_ARG_CONFIRM.equals(args[0])) {
|
||||
if (args != null && args.length > 0 && DUMP_ARG_CONFIRM.equals(args[0])) {
|
||||
// Execute confirmConfiguration() and take no further action.
|
||||
confirmConfiguration();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user