9 lines
163 B
Text
9 lines
163 B
Text
/* Test access an array on a null pointer */
|
|
|
|
class Main {
|
|
void main() {
|
|
int[] x;
|
|
|
|
x[1] = 5; //this should throw null pointer exception
|
|
}
|
|
}
|