public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
From: pmuldoon@sourceware.org
To: frysk-cvs@sourceware.org
Subject: [SCM]  master: Fix #5383. Peek without arguments causes NPE.
Date: Wed, 21 Nov 2007 10:03:00 -0000	[thread overview]
Message-ID: <20071121100304.5750.qmail@sourceware.org> (raw)

The branch, master has been updated
       via  f8936dca409520dc5833354037912026ab2a9a7b (commit)
      from  c6b2144b5562906445054a6fb3d991afa4356a7c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- 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.

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

Summary of changes:
 frysk-core/frysk/hpd/ChangeLog        |    4 ++++
 frysk-core/frysk/hpd/PeekCommand.java |    3 +++
 2 files changed, 7 insertions(+), 0 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/hpd/ChangeLog b/frysk-core/frysk/hpd/ChangeLog
index 26827e1..56c1b6c 100644
--- a/frysk-core/frysk/hpd/ChangeLog
+++ b/frysk-core/frysk/hpd/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-21  Phil Muldoon  <pmuldoon@redhat.com>
+
+	* PeekCommand.java (interpret): Check that arguments are > 0.
+	
 2007-11-20  Rick Moseley  <rmoseley@redhat.com>
 
 	* PeekCommand.java: Fix bz# 5380(make peek command
diff --git a/frysk-core/frysk/hpd/PeekCommand.java b/frysk-core/frysk/hpd/PeekCommand.java
index 22d8db4..9c9ec52 100644
--- a/frysk-core/frysk/hpd/PeekCommand.java
+++ b/frysk-core/frysk/hpd/PeekCommand.java
@@ -58,6 +58,9 @@ public class PeekCommand extends ParameterizedCommand {
     }
 
     void interpret(CLI cli, Input cmd, Object options) {
+        if (cmd.size() < 1)
+	    throw new InvalidCommandException("Not enough "
+                + "parameters. Please specify an addess to peek at.");
 	if (cmd.size() > 1) {
 	    throw new InvalidCommandException("Too many parameters.");
 	}


hooks/post-receive
--
frysk system monitor/debugger


                 reply	other threads:[~2007-11-21 10:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071121100304.5750.qmail@sourceware.org \
    --to=pmuldoon@sourceware.org \
    --cc=frysk-cvs@sourceware.org \
    --cc=frysk@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).