Merge "Shore up dividing by zero protections."
This commit is contained in:
committed by
Android (Google) Code Review
commit
5a89c8e36e
@@ -187,6 +187,7 @@ public class NetworkStatsCollection implements FileRotator.Reader {
|
||||
*/
|
||||
@VisibleForTesting
|
||||
public static long multiplySafe(long value, long num, long den) {
|
||||
if (den == 0) den = 1;
|
||||
long x = value;
|
||||
long y = num;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user