Comment Comment by Defletter Yup. Your IDE will likely highlight it as an issue, but it's totally legal to return a null Optional. There's nothing special about it, it's just a wrapper class. parent Defletter 2 years ago