lib/proxied_jid.rb 🔗
@@ -8,7 +8,7 @@ class ProxiedJID < SimpleDelegator
def unproxied
Blather::JID.new(
- node.gsub(/\\(#{ESCAPED})/) { |s|
+ node&.gsub(/\\(#{ESCAPED})/) { |s|
s[1..-1].to_i(16).chr
}
)
Stephen Paul Weber created
lib/proxied_jid.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -8,7 +8,7 @@ class ProxiedJID < SimpleDelegator
def unproxied
Blather::JID.new(
- node.gsub(/\\(#{ESCAPED})/) { |s|
+ node&.gsub(/\\(#{ESCAPED})/) { |s|
s[1..-1].to_i(16).chr
}
)