Sign in
eclipse
/
jdt
/
eclipse.jdt.debug
/
refs/tags/v20020418a
/
.
/
org.eclipse.jdt.debug.tests
/
testprograms
/
ThrowsNPE.java
blob: 5f46a74875da6adc3619a353a554ba9f2bb9bb07 [
file
] [
log
] [
blame
]
public
class
ThrowsNPE
{
public
static
void
main
(
String
[]
args
)
{
ThrowsNPE
anObject
=
new
ThrowsNPE
();
try
{
anObject
.
throwBaby
();
}
catch
(
NullPointerException
ne
)
{
// do nothing
}
}
public
void
throwBaby
()
{
throw
new
NullPointerException
();
}
}