* commit '6a53bd9ddbff5dcccec3cd3928e10317007031d3': 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