title: No Viable Alternative at character ' '
body: <p>Hi i am getting the following error in this code
  /*
  Class : CreateMobileChatterCntrl 
  Description : Post Chatter on Contact.
  Developed by : Harish Khatri(Appirio Offshore)
  Created Date : June 2, 2012
  */</p>
  
  <pre><code>public without sharing class CreateMobileChatterCntrl {
    public final Id ContactID{get;set;}
    public String message{get;set;}
    public boolean isSuccess{get;set;}
    public boolean throwError{get;set;}
    public String deviceType{get;set;}
    //----------------------------------------------------------------------------    
      //constructor
    //----------------------------------------------------------------------------  
    public CreateMobileChatterCntrl() {
      throwError = false;
      isSuccess = false;
      if( ApexPages.CurrentPage().getParameters().get('id') != null){
        ContactID = ApexPages.CurrentPage().getParameters().get('id');
      }
      String userAgent = ApexPages.currentPage().getHeaders().get('USER-AGENT');
      if(userAgent.contains('iPhone')) 
        deviceType = 'iPhone';
      //else if(userAgent.contains('Android')) deviceType = 'Android';  
    }
    //----------------------------------------------------------------------------    
      // Post the chatter on contact
    //----------------------------------------------------------------------------
    public Pagereference save() {
  
      if(message == null || message ==''){
        throwError = true;
        return null;
      }
  
      FeedItem feedItem = new FeedItem();
      feedItem.ParentId = ContactID;
      feedItem.Body = message;
  
      try {
  
        insert feedItem;
        isSuccess = true;
  
      } catch(Exception e){}
     return null;//new PageReference('/' + ContactID);
    }
  
    public Pagereference cancel() {
      return new PageReference('/' + ContactID);
    }
  }
  </code></pre>
  
  <p>public final Id ContactID{get;set;} at this line i am getting the error No Viable Alternative at character ' '.can any one please help why i am getting this error??</p>