summaryrefslogtreecommitdiff
path: root/lib/plist/parser.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plist/parser.rb')
-rw-r--r--lib/plist/parser.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/plist/parser.rb b/lib/plist/parser.rb
index a5f2450..de441fc 100644
--- a/lib/plist/parser.rb
+++ b/lib/plist/parser.rb
@@ -210,8 +210,7 @@ module Plist
require 'base64'
class PData < PTag
def to_ruby
- data = Base64.decode64(text.gsub(/\s+/, ''))
-
+ data = Base64.decode64(text.gsub(/\s+/, '')) unless text.nil?
begin
return Marshal.load(data)
rescue Exception => e