Bug 5383 - fhpd peek with no parameters spawns an NPE
Summary: fhpd peek with no parameters spawns an NPE
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Phil Muldoon
URL:
Keywords:
Depends on:
Blocks: 2246
  Show dependency treegraph
 
Reported: 2007-11-21 10:00 UTC by Phil Muldoon
Modified: 2007-11-21 10:04 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Muldoon 2007-11-21 10:00:17 UTC
[pmuldoon@localhost frysk_bin]$ ./frysk-core/frysk/bindir/fhpd core.25927
/bin/sleep 
Attached to core file: /home/pmuldoon/frysk_bin/core.25927
(fhpd) where
[0.0]
#0 0x00000038cba9ac30 in __nanosleep_nocancel () from /lib64/libc.so.6
#1 0x0000000000402f1b in [unknown] from /bin/sleep
#2 0x0000000000402a44 in [unknown] from /bin/sleep
#3 0x000000000040158c in [unknown] from /bin/sleep
#4 0x00000038cba1e074 in __libc_start_main () from /lib64/libc.so.6
#5 0x00000000004011d9 in [unknown] from /bin/sleep
(fhpd) peek
[0.0]
Internal Error: java.lang.NullPointerException
   at frysk.hpd.Input.parameter(fhpd)
   at frysk.hpd.PeekCommand.interpret(fhpd)
   at frysk.hpd.ParameterizedCommand.interpret(fhpd)
   at frysk.hpd.MultiLevelCommand.interpret(fhpd)
   at frysk.hpd.CLI.execCommand(fhpd)
   at frysk.bindir.fhpd.main(fhpd)
Comment 1 Phil Muldoon 2007-11-21 10:04:53 UTC
- Log -----------------------------------------------------------------
commit f8936dca409520dc5833354037912026ab2a9a7b
Author: Phil Muldoon <pmuldoon@redhat.com>
Date:   Wed Nov 21 10:02:54 2007 +0000

    Fix #5383. Peek without arguments causes NPE.
    
    2007-11-21  Phil Muldoon  <pmuldoon@redhat.com>
    
    	* PeekCommand.java (interpret): Check that arguments are > 0.

-----------------------------------------------------------------------