Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
### Proposed Changes * Added a `try-catch` block to handle `DotDataException` when fetching the `Contentlet` in `ShortyServlet`. * Removed the unused `getImageContentlet` method to reduce redundancy. * Updated logging to reduce verbosity when an image does not exist, replacing it with a concise debug log. ### Checklist - [x] Tests - [x] Translations - [x] Security Implications Contemplated (add notes if applicable) ### Additional Info The changes address a NullPointerException occurring when a requested image by shorty does not exist. This was causing excessive error logging, making it difficult to identify the actual issue. By catching `DotDataException` and logging a debug message, we now ensure that logs remain clean and the system handles missing images gracefully. The removed method `getImageContentlet` was no longer necessary as its functionality was integrated directly into the updated code.
- Loading branch information