Project

General

Profile

Bug #7646

FILL-IN: NPE during the PASTE of non-text clipboard contents

Added by Vladimir Tsichevski 9 months ago. Updated 9 months ago.

Status:
WIP
Priority:
Normal
Target version:
-
Start date:
Due date:
% Done:

0%

billable:
No
vendor_id:
GCD
case_num:

Related issues

Related to User Interface - Bug #7515: FILL-IN: editing dates issues WIP

History

#1 Updated by Vladimir Tsichevski 9 months ago

  • Status changed from New to WIP
  • Assignee set to Vladimir Tsichevski

Scenario:

  1. there is no text contents in system-wide clipboard (for example, the user copied an image to clipboard)
  2. the user selects a FILL-IN and calls paste (by typing Ctrl-V, for example).
  3. 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.

#2 Updated by Greg Shah 9 months ago

Do we need a task for this? The fix seems trivial.

#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.

#4 Updated by Greg Shah 9 months ago

Instead of applying the fix to trunk directly, I prefer to just include the fix in another branch where you are already working.

#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.

Also available in: Atom PDF