I am trying to write a simple RSS Reader. I think i done but I get exception with "null" message. JavaDoc said that it is possible to get this value so it's nothing strange. But how could I find out what is wrong with my code? part 1 part 2 and main:
public static void main(String[] args) throws MalformedURLException {
URL url = new URL("http://facet.wp.pl/rss.xml");
Feed feed = new Feed();
RSSParser parser = new RSSParser(url);
parser.RSSFeed();
for(String wejscia : feed.entries){
System.out.println(wejscia);
}
}
@EDIT The exception is at RSSParser.RSSFeed(RSSParser.java:28) and i have already know that it's a NullPointerException