news & event feed safety fix
This commit is contained in:
@@ -77,7 +77,7 @@ namespace CampusAppWP8.Feed.Events
|
||||
if (model == null)
|
||||
{
|
||||
// at loading
|
||||
if (info.Exists == true)
|
||||
if (info != null && info.Exists == true)
|
||||
{
|
||||
retValue = this.CheckIsUpToDate(info.LastWriteTime);
|
||||
}
|
||||
@@ -96,7 +96,8 @@ namespace CampusAppWP8.Feed.Events
|
||||
{
|
||||
bool retValue = true;
|
||||
|
||||
if ((info.Exists == false)
|
||||
if ((info == null)
|
||||
|| (info.Exists == false)
|
||||
|| (info.Length == 0))
|
||||
{
|
||||
retValue = false;
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace CampusAppWP8.Feed.News
|
||||
|
||||
if (model == null)
|
||||
{
|
||||
if (info.Exists == true)
|
||||
if (info != null && info.Exists == true)
|
||||
{
|
||||
retValue = this.CheckIsUpToDate(info.LastWriteTime);
|
||||
}
|
||||
@@ -95,7 +95,8 @@ namespace CampusAppWP8.Feed.News
|
||||
{
|
||||
bool retValue = true;
|
||||
|
||||
if ((info.Exists == false)
|
||||
if ((info == null)
|
||||
|| (info.Exists == false)
|
||||
|| (info.Length == 0))
|
||||
{
|
||||
retValue = false;
|
||||
|
||||
Reference in New Issue
Block a user