Closed anirban-a closed 5 years ago
Thanks for your help. Sorry, but I can't accept your pull request. It will be nice to use aspects here. I've already finished MessageAspect.
if (optionalMessage.isPresent() && optionalMessage.get().getAttachments().get(Math.toIntExact(fileId)))
sounds better for me. And you don't have to set attachment to null and set in one more time.Thanks Hope you contribute one more time :)
Ok, so for now I reverted the changed made in the controller, kept as it was, but fixed the specific test case that was failing. Also, @marcinadd can you provide some other contact details of yours where I can discuss any doubts and confusions with you, say Skype, Slack, wherever you're active?
…loadFile_shouldReturnFileToDownload
Handle null pointer exception in MessageController