Drag 'n Drop Inline Images - Fixing Aggressive Error Logging for FileAttachment thumbnail and icon_url Properties
Review Request #6706 — Created Dec. 19, 2014 and submitted — Latest diff uploaded
With drag and drop inline images, we've introduced the ability to have a file attachment with a null file field. In this case, we're expecting
mimetype_handlerto be None (as there is no file).
thumbnailandicon_urlcan both be accessed when the file attachment does not yet have a file, and we don't want to log an error in this case. So, just return None.
All tests pass. There is no error message being logged to the console when accessing
thumbnailoricon_urlproperties on a file attachment with no file.