Loading telephony/java/android/telephony/ServiceState.java +1 −3 Original line number Original line Diff line number Diff line Loading @@ -17,7 +17,6 @@ package android.telephony; package android.telephony; import android.annotation.IntDef; import android.annotation.IntDef; import android.annotation.Nullable; import android.annotation.SystemApi; import android.annotation.SystemApi; import android.annotation.TestApi; import android.annotation.TestApi; import android.os.Bundle; import android.os.Bundle; Loading Loading @@ -496,9 +495,8 @@ public class ServiceState implements Parcelable { * * * @return Current serving cell bandwidths * @return Current serving cell bandwidths */ */ @Nullable public int[] getCellBandwidths() { public int[] getCellBandwidths() { return mCellBandwidths; return mCellBandwidths == null ? new int[0] : mCellBandwidths; } } /** /** Loading Loading
telephony/java/android/telephony/ServiceState.java +1 −3 Original line number Original line Diff line number Diff line Loading @@ -17,7 +17,6 @@ package android.telephony; package android.telephony; import android.annotation.IntDef; import android.annotation.IntDef; import android.annotation.Nullable; import android.annotation.SystemApi; import android.annotation.SystemApi; import android.annotation.TestApi; import android.annotation.TestApi; import android.os.Bundle; import android.os.Bundle; Loading Loading @@ -496,9 +495,8 @@ public class ServiceState implements Parcelable { * * * @return Current serving cell bandwidths * @return Current serving cell bandwidths */ */ @Nullable public int[] getCellBandwidths() { public int[] getCellBandwidths() { return mCellBandwidths; return mCellBandwidths == null ? new int[0] : mCellBandwidths; } } /** /** Loading