NoMethodError in HomeController#subcategory

undefined method `articles' for nil:NilClass

Extracted source (around line #842):
840
841
842
843
844
845
              
if(!(!!params[:page]) || params[:page].size == 0)
if(@articleCategory== nil)
@featuredArticles = @articlesubcategory[0].articles.where(active: true).where(ranking: 1..Float::INFINITY).order('ranking ASC NULLS LAST, created_at DESC')
else
@featuredArticles = @articlesubcategory[0].articles.where(articlecategory: @articlecategory).where(active: true).where(ranking: 1..Float::INFINITY).order('ranking ASC NULLS LAST, created_at DESC')
end

Rails.root: /home/locutus/sites/enledger_website_master

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"subcategory"=>"Science%20%26%20Medicine"}

Response

Headers:

None