From 31530ba5865d51898f5e63b6ddbaa2739fa9cc5b Mon Sep 17 00:00:00 2001 From: michael starke Date: Wed, 3 Jul 2013 23:46:05 +0200 Subject: [PATCH] fixed issue trying to copy nil objects to the pasteboard --- MacPass/MPEntryViewController.m | 4 +++- MacPass/MacPass-Info.plist | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/MacPass/MPEntryViewController.m b/MacPass/MPEntryViewController.m index a1fa26d9..a3f19638 100644 --- a/MacPass/MPEntryViewController.m +++ b/MacPass/MPEntryViewController.m @@ -396,7 +396,9 @@ NSString *const _toggleFilterUsernameButton = @"SearchUsername"; } - (void)_copyToPasteboard:(NSString *)data overlayInfo:(MPOVerlayInfoType)overlayInfoType { - [[MPPasteBoardController defaultController] copyObjects:@[ data ]]; + if(data) { + [[MPPasteBoardController defaultController] copyObjects:@[ data ]]; + } NSImage *infoImage = nil; NSString *infoText = nil; switch (overlayInfoType) { diff --git a/MacPass/MacPass-Info.plist b/MacPass/MacPass-Info.plist index 1a684aa3..13a856d9 100644 --- a/MacPass/MacPass-Info.plist +++ b/MacPass/MacPass-Info.plist @@ -48,7 +48,7 @@ CFBundleSignature ???? CFBundleVersion - 1872 + 1873 LSMinimumSystemVersion ${MACOSX_DEPLOYMENT_TARGET} NSHumanReadableCopyright