summaryrefslogtreecommitdiff
path: root/gnu/classpath/jdwp/event/filters/FieldOnlyFilter.java
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/classpath/jdwp/event/filters/FieldOnlyFilter.java')
-rw-r--r--gnu/classpath/jdwp/event/filters/FieldOnlyFilter.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/gnu/classpath/jdwp/event/filters/FieldOnlyFilter.java b/gnu/classpath/jdwp/event/filters/FieldOnlyFilter.java
index 47a804101..4fd561026 100644
--- a/gnu/classpath/jdwp/event/filters/FieldOnlyFilter.java
+++ b/gnu/classpath/jdwp/event/filters/FieldOnlyFilter.java
@@ -1,5 +1,5 @@
/* FieldOnlyFilter.java -- filter on field
- Copyright (C) 2005 Free Software Foundation
+ Copyright (C) 2005, 2013 Free Software Foundation
This file is part of GNU Classpath.
@@ -69,11 +69,14 @@ public class FieldOnlyFilter
public FieldOnlyFilter (ReferenceTypeId refId, /*Field*/ReferenceTypeId fid)
throws InvalidClassException, InvalidFieldException
{
- if (refId == null || refId.getReference().get () == null)
+ if (refId == null)
+ throw new InvalidClassException();
+
+ if (refId.getReference().get () == null)
throw new InvalidClassException (refId.getId ());
if (fid == null)
- throw new InvalidFieldException (fid.getId ());
+ throw new InvalidFieldException ();
_refId = refId;
_fieldId = fid;