Node is optional

Stephen Paul Weber created

Change summary

lib/proxied_jid.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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
 			}
 		)