[BUG] NullPointerException in client if clipboard is empty during login #5388
Labels
bug
Something isn't working
Fix-Commited
Issue fixed and will be available in milestone
Internal-Issue-Created
An issue has been created in NextGen's internal issue tracker
RS-9267
triaged
Milestone
Describe the bug
The mirth client throws a NullPointerException if the clipboard is empty during login.
Expected behavior
Login should occur when the clipboard is empty.
Actual behavior
Environment (please complete the following information):
Workaround(s)
Copy something to the clipboard before logging in.
Additional context
connect/client/src/com/mirth/connect/client/ui/actions/PasteAction.java
Lines 38 to 39 in 00c2496
In line 38, the call to getContents can return null if the clipboard is empty, causing the exception to be thrown on line 39.
Probably just needs to return false if
contents
is null.The text was updated successfully, but these errors were encountered: