am 69d28437: Merge "RRO tests: fix potential NPE"
* commit '69d28437d3416301895639b4c51f9b31842126f5': RRO tests: fix potential NPE
This commit is contained in:
@@ -225,8 +225,12 @@ public abstract class OverlayBaseTest extends AndroidTestCase {
|
|||||||
reader = new BufferedReader(new InputStreamReader(input));
|
reader = new BufferedReader(new InputStreamReader(input));
|
||||||
actual = reader.readLine();
|
actual = reader.readLine();
|
||||||
} finally {
|
} finally {
|
||||||
reader.close();
|
if (reader != null) {
|
||||||
input.close();
|
reader.close();
|
||||||
|
}
|
||||||
|
if (input != null) {
|
||||||
|
input.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
final String no = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, " +
|
final String no = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, " +
|
||||||
|
|||||||
Reference in New Issue
Block a user