aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPFieldEditorController.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m
index 2e761f80..5075ffaf 100644
--- a/Source/SPFieldEditorController.m
+++ b/Source/SPFieldEditorController.m
@@ -917,7 +917,10 @@
*/
- (id)previewPanel:(id)panel previewItemAtIndex:(NSInteger)index
{
- return [NSURL fileURLWithPath:tmpFileName];
+ if(tmpFileName)
+ return [NSURL fileURLWithPath:tmpFileName];
+
+ return nil;
}
/**