package npe;

public class IdentifyCorrectBranchPlease {
	
	int f(boolean b) {
		Object x = null;
		if (b) {
			x = new Object();
		} else {
			b = true;
		}
		return x.hashCode();
	}
	int f(boolean b1, boolean b2) {
		Object x = null;
		if (b1) {
			x = new Object();
		} else {
			b1 = true;
		}
		if (b2) 
			System.out.println("b2 is true");
		return x.hashCode();
	}

}

Test cases for whether we can correctly identify the path leading to the NPE
Test cases for whether we can correctly identify the path leading to the NPE


git-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@5978 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3
