Skip to content

Instantly share code, notes, and snippets.

package com.isobar.operationlife.ui;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.widget.ImageButton;
package com.isobar.operationlife.util;
import android.media.MediaRecorder;
import java.io.IOException;
import java.util.Timer;
import java.util.TimerTask;
/**
* Created by anitasantoso on 17/07/2014.
@anitasantoso
anitasantoso / gist:5052341
Created February 27, 2013 22:17
Snarky iOS SDK error message
2013-02-28 09:08:03.731 IICaptain[1328:907] *** -[__NSCFCalendar components:fromDate:]: date cannot be nil
I mean really, what do you think that operation is supposed to mean with a nil date?
An exception has been avoided for now.
A few of these errors are going to be reported with this complaint, then further violations will simply silently do whatever random thing results from the nil.
Here is the backtrace where this occurred this time (some frames may be missing due to compiler optimizations):
(
0 CoreFoundation 0x33052a25 <redacted> + 84
1 IICaptain 0x000c751f +[DateUtil setLastDayOfTheWeek:] + 110
2 IICaptain 0x000c6269 -[CylinderChartData setData:] + 2136
3 IICaptain 0x000c033b __38-[ChartViewController viewWillAppear:]_block_invoke + 166