News for hackers. Stuff that matters.
Re:What can’t the internet handle in 2022? Apostrophes by wtetzner on Tuesday October 04, 2022 @10:58AM (#33081318)
That's so weird to me. It means that somewhere someone is matching the string "null" and converting it into an actual null value.
Re:What can’t the internet handle in 2022? Apostrophes by jsmith45 on Tuesday October 04, 2022 @01:16PM (#33083487)
What is generally happening in these cases is that data is getting stringified, with `null` becoming the string "null" (which is a common output for string formatting a null in various languages).

This output is is then later re-parsed, and to try to restore null inputs back to being null, the code matches on the string "null", ignoring the fact that that could have been a valid string itself.

Re:What can’t the internet handle in 2022? Apostrophes by remexre on Tuesday October 04, 2022 @11:15AM (#33081559)
It's pretty believable to me that _some_ Java deserialization library from the early oughts totally does this as a default behavior.
Re:What can’t the internet handle in 2022? Apostrophes by GoblinSlayer on Tuesday October 04, 2022 @02:33PM (#33084720)
Not all data structures are nullable or null reference is undesirable. In this case you can use the null object pattern https://en.wikipedia.org/wiki/Null_object_pattern#Descriptio...
Re:What can’t the internet handle in 2022? Apostrophes by DangitBobby on Tuesday October 04, 2022 @11:41AM (#33081970)
I suspect some batch processing job with a CSV dump is the culprit behind a lot of bad treatment of strings.