import java.io.*;

class NullDeref8 {

  public int foo(String filename) throws IOException {
	InputStream in = null;
	try {
		in = new FileInputStream(filename);
	}
	finally {
		if (in == null) 
			System.out.println("Failure");
		}
	return in.read();
	}
  }

import java.io.*;

class NullDeref8 {

  public int foo(String filename) throws IOException {
	InputStream in = null;
	try {
		in = new FileInputStream(filename);
	}
	finally {
		if (in == null) 
			System.out.println("Failure");
		}
	// can't generate a NPE; if in isn't assigned to,
	// threw an exception and won't execute this code
	return in.read();
	}
  }

Add commit here