RSMangler icon indicating copy to clipboard operation
RSMangler copied to clipboard

undefined method `[]' for nil:NilClass (NoMethodError)

Open darryllane opened this issue 2 years ago • 1 comments

It seems this issue was raised before, the cause being a blank line. In this instance, there are no blank lines in the input.

KALI [env] Linux kali 6.0.0-kali3-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.0.7-1kali1 (2022-11-07) x86_64 GNU/Linux source apt install

[usage] rsmangler --file /home/kali/Desktop/file.txt --output /home/kali/Desktop/fileMangled.txt

[error] /usr/bin/rsmangler:353:in block in <main>': undefined method []' for nil:NilClass (NoMethodError) from /usr/bin/rsmangler:352:in 'each' from /usr/bin/rsmangler:352:in '<main>'

MAC [env] Ventura 13.0.1 source git clone repo

[usage] rsmangler --file /dirlocation/file.txt --output /dirlocation/fileMangled.txt

[error] Traceback (most recent call last): ./rsmangler.rb:305:in '<main>': undefined method 'empty?' for nil:NilClass (NoMethodError)

darryllane avatar May 25 '23 08:05 darryllane

@darryllane Leave a blank line at the end of your file.txt input word set.

tylerapplebaum avatar Aug 05 '23 18:08 tylerapplebaum