felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stuart McCulloch (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-525) NPE when Ctrl-C at the "Enter profile name:" prompt
Date Tue, 01 Apr 2008 03:34:24 GMT

    [ https://issues.apache.org/jira/browse/FELIX-525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583987#action_12583987

Stuart McCulloch commented on FELIX-525:

Looking at the code, Main.java:205 is the following check:

            if (profileName.length() != 0)

where profileName was read from a BufferedReader - so it looks
as though the Ctrl-C has interrupted the readLine method but not
caused an IOException...

if we wanted to be really paranoid then we could change the catch
to be Exception instead of IOException, and also add a null check
for the profileName test on line 205

but it would be better if we could recreate this and work out exactly
what's going on (Jacek - if you can easily reproduce this then you
might want to try compiling Felix from the latest sources and add
some println's to find out if it's throwing a different exception from
the readLine method...)

> NPE when Ctrl-C at the "Enter profile name:" prompt
> ---------------------------------------------------
>                 Key: FELIX-525
>                 URL: https://issues.apache.org/jira/browse/FELIX-525
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>            Reporter: Jacek Laskowski
> jlaskowski@dev /cygdrive/c/apps/felix
> $ java -jar bin/felix.jar
> Welcome to Felix.
> =================
> Enter profile name: (press Ctrl-C here)
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.felix.main.Main.main(Main.java:205)

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message