fixed the null pointer exception when there is no news article list in db.