null pointer
This commit is contained in:
parent
5c8e1bd6d4
commit
12f93b5463
@ -49,7 +49,7 @@ public class DataSourceUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static DataSource.Factory getDefaultDataSourceFactory(Context context, DefaultBandwidthMeter bandwidthMeter, Map<String, String> requestHeaders) {
|
public static DataSource.Factory getDefaultDataSourceFactory(Context context, DefaultBandwidthMeter bandwidthMeter, Map<String, String> requestHeaders) {
|
||||||
if (defaultDataSourceFactory == null || !requestHeaders.isEmpty()) {
|
if (defaultDataSourceFactory == null || (requestHeaders != null && !requestHeaders.isEmpty())) {
|
||||||
defaultDataSourceFactory = buildDataSourceFactory(context, bandwidthMeter, requestHeaders);
|
defaultDataSourceFactory = buildDataSourceFactory(context, bandwidthMeter, requestHeaders);
|
||||||
}
|
}
|
||||||
return defaultDataSourceFactory;
|
return defaultDataSourceFactory;
|
||||||
|
Loading…
Reference in New Issue
Block a user