Commit 18ce8301868f86ab9f72d53733035ce5bb3a7a67
1 parent
eaff26e9
Exists in
master
and in
23 other branches
ActionItem1053: fixing weird crash
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
app/models/domain.rb
| ... | ... | @@ -72,6 +72,7 @@ class Domain < ActiveRecord::Base |
| 72 | 72 | # transfering a domain from a profile to an environment of vice-versa |
| 73 | 73 | # requires restarting the application. |
| 74 | 74 | def self.hosting_profile_at(domainname) |
| 75 | + return false unless domainname | |
| 75 | 76 | @hosting[domainname] ||= |
| 76 | 77 | begin |
| 77 | 78 | domain = Domain.find_by_name(domainname) | ... | ... |