Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Shouldn't hang on startup if a plugin returns nil from :keymaps

  • Loading branch information...
commit bb0a906e0e854ea08fb07e71682fc3b9a53cd4a5 1 parent 8ad3626
@danlucraft danlucraft authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 plugins/application/lib/application.rb
View
6 plugins/application/lib/application.rb
@@ -266,6 +266,10 @@ def main_keymap
keymap = Keymap.new("main", Redcar.platform)
Redcar.plugin_manager.objects_implementing(:keymaps).each do |object|
maps = object.keymaps
+ unless maps
+ puts "#{object.inspect} implements :keymaps but :keymaps returns nil"
+ maps = []
+ end
keymaps = maps.select do |map|
map.name == "main" and map.platforms.include?(Redcar.platform)
end
@@ -378,4 +382,4 @@ def toggle_show_toolbar
Application.storage['show_toolbar'] = @show_toolbar = !Application.storage['show_toolbar']
end
end
-end
Please sign in to comment.
Something went wrong with that request. Please try again.