blob: 8fe88bdd9ead21af2428929179a6c7c578970208 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright 2008 The Android Open Source Project
public class Main {
int mFoo = 27;
private void doStuff() {
System.out.println("mFoo is " + mFoo);
}
public static void main(String[] args) {
Main instance = null;
try {
instance.doStuff();
throw new RuntimeException("fail");
} catch (NullPointerException npe) { }
System.out.println("done");
}
}
|