From ec307fdda8f3003b3aa68c79d5933f0453bb5817 Mon Sep 17 00:00:00 2001 From: Fil Maj Date: Mon, 14 Mar 2011 16:15:19 -0700 Subject: [PATCH] Null check in droidgap classic (build script). --- lib/classic.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classic.rb b/lib/classic.rb index 8c1ca2d8..cf9ab692 100755 --- a/lib/classic.rb +++ b/lib/classic.rb @@ -21,7 +21,7 @@ class Classic def setup @android_dir = File.expand_path(File.dirname(__FILE__).gsub(/lib$/,'')) @framework_dir = File.join(@android_dir, "framework") - @icon = File.join(@www, 'icon.png') unless File.exists?(@icon) + @icon = File.join(@www, 'icon.png') unless !@icon.nil? && File.exists?(@icon) # Hash that stores the location of icons for each resolution type. Uses the default icon for all resolutions as a baseline. @icons = { :"drawable-ldpi" => @icon,