When the static is declared, is it not already null until it is initialised? Is there a reason for using
static MusicPlayer instance = null;
rather than
static MusicPlayer instance;
I tested it with the latter and it worked in this case. I suppose the real question is - could there be problems further down the line with this example or in other similar uses of statics where failing to initialise as null in the declaration breaks something?