﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
12508	Exception in `MoveCommandTest` and others	bastiK	team	"I get a NPE when running the `MoveCommandTest` and similar tests with Netbeans:
{{{
Testcase: equalsContract(org.openstreetmap.josm.command.MoveCommandTest):	Caused an ERROR
null
java.lang.NullPointerException
	at org.openstreetmap.josm.data.preferences.IntegerProperty.get(IntegerProperty.java:26)
	at org.openstreetmap.josm.gui.layer.OsmDataLayer.<init>(OsmDataLayer.java:135)
	at org.openstreetmap.josm.command.MoveCommandTest.equalsContract(MoveCommandTest.java:21)


Test org.openstreetmap.josm.command.MoveCommandTest FAILED
}}}

Looks to me as if `Main.pref` is indeed not initialized. What am I missing?

"	defect	closed	normal	16.02	Unit tests		fixed	junit fixture	Don-vip
