Bug #7646
FILL-IN: NPE during the PASTE of non-text clipboard contents
Start date:
Due date:
% Done:
0%
billable:
No
vendor_id:
GCD
case_num:
Related issues
History
#1 Updated by Vladimir Tsichevski 9 months ago
- Status changed from New to WIP
- Assignee set to Vladimir Tsichevski
Scenario:
- there is no text contents in system-wide clipboard (for example, the user copied an image to clipboard)
- the user selects a
FILL-IN
and callspaste
(by typingCtrl-V
, for example). - the client crashes with NPE.
The problem root is in the FillInGuiImpl
, l.1012:
String txt = gd.clipboardContents(); for (char ch : txt.toCharArray()) { ...
In case there is no text clipboard contents, the txt
variable is null
.
#3 Updated by Vladimir Tsichevski 9 months ago
Greg Shah wrote:
Do we need a task for this? The fix seems trivial.
I think we don't. I can fix this in the trunk after some testing.
#5 Updated by Vladimir Tsichevski 9 months ago
Greg Shah wrote:
Instead of applying the fix to trunk directly, I prefer to just include the fix in another branch where you are already working.
OK
#6 Updated by Vladimir Tsichevski 9 months ago
- Related to Bug #7515: FILL-IN: editing dates issues added
#8 Updated by Vladimir Tsichevski 9 months ago
Greg Shah wrote:
Instead of applying the fix to trunk directly, I prefer to just include the fix in another branch where you are already working.
Will be fixed in the 7019a branch.