• Darrell Waddell 223
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 2
    Replies

Getting the following error while checking Challenge 8 on the Advanced Apex Specialist Super Badge:

 

Challenge Not yet complete... here's what's wrong:
There was an unexpected error in your org which is preventing this assessment check from completing: System.NullPointerException: Attempt to de-reference a null object Close errors


I also have all this code coverage and still cannot pass the challenge

My overall code coverage

Getting this error:
Error: Compile Error: unexpected token: 'List' at line 44 column 8

public String SupportTierValue {
  get {
           
        List tmpAcct = [SELECT Id, Name, Support_Tier__c
        FROM Account
        WHERE Id IN 
        (SELECT AccountId 
        FROM user 
        WHERE username=:UserInfo.getUsername()
        )
        LIMIT 1
        ];
        if (tmpAcct.size() > 0) {
        String SupportTier = tmpAcct[0].Support_Tier__c;
        }
        else {
        String SupportTier = 'SomeDefaultValue';
        }
        
      
       
    }
    return SupportTierValue;
  }
  private set;

}

I'm having issues with adding a Menu Item to the Navigation Menu within Community Builder.

User-added image
User-added image

This is what I want: Add a menu item called "My Profile" and have it go directly to the User Profile page.
What's happening: The URL for My Profile requires one or more parameters. Please replace each parameter with the appropriate value.

Name: My Profile

Type: Community Page
Page: User Profile
URL: /profile/:recordId

Getting the following error while checking Challenge 8 on the Advanced Apex Specialist Super Badge:

 

Challenge Not yet complete... here's what's wrong:
There was an unexpected error in your org which is preventing this assessment check from completing: System.NullPointerException: Attempt to de-reference a null object Close errors


I also have all this code coverage and still cannot pass the challenge

My overall code coverage