From 1efa36ed4fd28786eb99bea7cd7e5ec42c62c055 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Tue, 10 Nov 2015 19:16:38 +0200 Subject: [PATCH] string sometimes gets to_s in equal while half cooked during debugger register change or update to be precise. without the debugger there would be no access to the word at that point and no need for this hack --- lib/register/parfait_adapter.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/register/parfait_adapter.rb b/lib/register/parfait_adapter.rb index 3dc0bd48..749d53bf 100644 --- a/lib/register/parfait_adapter.rb +++ b/lib/register/parfait_adapter.rb @@ -133,7 +133,8 @@ module Parfait string = "" index = 1 while( index <= self.char_length) - string += get_char(index).chr + char = get_char(index) + string += char ? char.chr : "*" index = index + 1 end string