robotoworks / mechanoid

Eclipse plugin providing a set of DSL's for the rapid development of Android apps
58 stars 26 forks source link

Null-Check on Class from ServiceInfo (clz!=null) #226

Closed MaciejCiemiega closed 10 years ago

MaciejCiemiega commented 10 years ago

Class obtained from ServiceInfo can be null. For example while working with Amazon Device Messaging you cannot export a jar with this class (because it won't work on Kindle Fire then). While launching on non-Kindle devide this class is not really used (and application would work fine) but Mechanoid will throw NPE due to lack of this service Class.

fluxtah commented 10 years ago

Cheers, good spot, the design of how the service configuration works needs to be revised as it currently uses reflection and thats not really to great.