mirror of
https://github.com/apache/cordova-android.git
synced 2025-03-04 00:13:20 +08:00
Null check in droidgap classic (build script).
This commit is contained in:
parent
8d73b364f2
commit
ec307fdda8
@ -21,7 +21,7 @@ class Classic
|
|||||||
def setup
|
def setup
|
||||||
@android_dir = File.expand_path(File.dirname(__FILE__).gsub(/lib$/,''))
|
@android_dir = File.expand_path(File.dirname(__FILE__).gsub(/lib$/,''))
|
||||||
@framework_dir = File.join(@android_dir, "framework")
|
@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.
|
# Hash that stores the location of icons for each resolution type. Uses the default icon for all resolutions as a baseline.
|
||||||
@icons = {
|
@icons = {
|
||||||
:"drawable-ldpi" => @icon,
|
:"drawable-ldpi" => @icon,
|
||||||
|
Loading…
Reference in New Issue
Block a user