title: Dereference of null pointer,warning
body: <p>I did the "Build and analyze" in xCode and get "Dereference of null pointer" . I noted in my code below for which row I get the message. I'm developing for iPhone.</p>
  
  <p>"PDFScrollView.h"</p>
  
  <pre><code> #import "ENsightAppDelegate.h"
  @interface PDFScrollView : UIScrollView &lt;UIScrollViewDelegate&gt; {
  
  ENsightAppDelegate *appDelegate;
  }
  
   @end
  </code></pre>
  
  <p>"PDFScrollView.m"</p>
  
  <pre><code> - (id)initWithFrame:(CGRect)frame
  {
  if ((self = [super initWithFrame:frame])) {
  
      // Set up the UIScrollView
      self.showsVerticalScrollIndicator = NO;
      self.showsHorizontalScrollIndicator = NO;
      self.bouncesZoom = YES;
      //self.decelerationRate = UIScrollViewDecelerationRateFast;
      self.delegate = self;
      [self setBackgroundColor:[UIColor grayColor]];
      self.maximumZoomScale = 5;//200
      self.minimumZoomScale = 0.5;//.85
      self.userInteractionEnabled = YES;
      self.delaysContentTouches = YES;
      self.canCancelContentTouches = NO;
  
  }
  appDelegate =(ENsightAppDelegate *) [[UIApplication sharedApplication] delegate];
  pdfView=[appDelegate GetLeaveView];
  [self addSubview:pdfView];
  return self;
  
  }
  </code></pre>
  
  <p>It's not the complete code, pasted what I think is useful.</p>
  
  <p>I find this quite strange. How come I get this message?</p>
  
  <p><img src="https://i.stack.imgur.com/RkhXL.png" alt="enter image description here"></p>