Extension crashes on no dot

Code reviewMedium20 min

Your task

Review this Java method that returns the file extension (without the dot), or empty string if none.