The code:
String targetStr = in.readString();
if (targetStr != "null") {
Log.d("ASDF", "\"" + targetStr + "\"");
target = fmt.parseDateTime(targetStr);
}
Log:
06-13 02:31:22.429: D/ASDF(25738): "null"
Edit: Oh, ==
actually compares objects rather than the actual string values...
Yeah you have to do the whole String.equals("null"); and stuff.
It is really weird.