Merge "Fix overriding ip configurtion with default one" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6f017e3319
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.server.ethernet;
|
||||
|
||||
import android.annotation.Nullable;
|
||||
import android.net.IpConfiguration;
|
||||
import android.os.Environment;
|
||||
import android.util.ArrayMap;
|
||||
@@ -77,9 +78,11 @@ public class EthernetConfigStore {
|
||||
}
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public IpConfiguration getIpConfigurationForDefaultInterface() {
|
||||
synchronized (mSync) {
|
||||
return new IpConfiguration(mIpConfigurationForDefaultInterface);
|
||||
return mIpConfigurationForDefaultInterface == null
|
||||
? null : new IpConfiguration(mIpConfigurationForDefaultInterface);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user