At least, Geany should show some warning telling it found a NUL character and it stopped reading.
It definitely should. Actually, it's supposed to *not* open the file, and show an error in the *message window*, but not load the file truncated… Can you reproduce with a clean configuration (and no plugins)? If so, could you elaborate on the file(s) having issues (type, example, file system, etc.) please?