class Test
{
	void m() {
		System.out.println("m ran");
	}
	public static void main (String[] args) throws java.lang.Exception
	{
		Test t = null;
		try {
			Runnable fn = t::m;
		}
		catch (NullPointerException npe) {
			System.out.println("Got an NPE");
		}
	}
}