mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Maybe avoid one more NPE
git-svn-id: https://zxing.googlecode.com/svn/trunk@2364 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
1fbad444ee
commit
6ce63cc1a2
|
@ -584,7 +584,9 @@ public final class CaptureActivity extends Activity implements SurfaceHolder.Cal
|
||||||
|
|
||||||
if (copyToClipboard && !resultHandler.areContentsSecure()) {
|
if (copyToClipboard && !resultHandler.areContentsSecure()) {
|
||||||
ClipboardManager clipboard = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);
|
ClipboardManager clipboard = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);
|
||||||
clipboard.setText(displayContents);
|
if (displayContents != null) {
|
||||||
|
clipboard.setText(displayContents);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue