You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a new object to pass to putObject, the object has no metadata for the date. However, calling toString() invokes getLastModifiedDate(), which invokes getDate(), which throws IllegalArgumentException (which should really be IllegalStateException) if no date is set. This means that trying to log an object pre-upload causes an exception.
Since toString() should never throw an exception, it should either omit lastModified or inspect it in a null-safe manner.
The text was updated successfully, but these errors were encountered:
When creating a new object to pass to
putObject
, the object has no metadata for the date. However, callingtoString()
invokesgetLastModifiedDate()
, which invokesgetDate()
, which throwsIllegalArgumentException
(which should really beIllegalStateException
) if no date is set. This means that trying to log an object pre-upload causes an exception.Since
toString()
should never throw an exception, it should either omitlastModified
or inspect it in a null-safe manner.The text was updated successfully, but these errors were encountered: